{"id":"CVE-2022-49905","state":"PUBLISHED","title":"net/smc: Fix possible leaked pernet namespace in smc_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: Fix possible leaked pernet namespace in smc_init()\n\nIn smc_init(), register_pernet_subsys(&smc_net_stat_ops) is called\nwithout any error handling.\nIf it fails, registering of &smc_net_ops won't be reverted.\nAnd if smc_nl_init() fails, &smc_net_stat_ops itself won't be reverted.\n\nThis leaves wild ops in subsystem linkedlist and when another module\ntries to call register_pernet_operations() it triggers page fault:\n\nBUG: unable to handle page fault for address: fffffbfff81b964c\nRIP: 0010:register_pernet_operations+0x1b9/0x5f0\nCall Trace:\n  <TASK>\n  register_pernet_subsys+0x29/0x40\n  ebtables_init+0x58/0x1000 [ebtables]\n  ...","publishedAt":"2025-05-01T14:10:49.621Z","updatedAt":"2026-10-15T21:31:17.447Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"61defd6450a9ef4a1487090449999b0fd83518ef","versionType":"git"},{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09","versionType":"git"},{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"62ff373da2534534c55debe6c724c7fe14adb97f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.78","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.8","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c"]}],"references":["https://git.kernel.org/stable/c/61defd6450a9ef4a1487090449999b0fd83518ef","https://git.kernel.org/stable/c/c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09","https://git.kernel.org/stable/c/62ff373da2534534c55debe6c724c7fe14adb97f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49905.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49905","state":"PUBLISHED","datePublished":"2025-05-01T14:10:49.621Z","dateUpdated":"2026-10-15T21:31:17.447Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-05-01T14:05:17.246Z"},"containers":{"cna":{"title":"net/smc: Fix possible leaked pernet namespace in smc_init()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: Fix possible leaked pernet namespace in smc_init()\n\nIn smc_init(), register_pernet_subsys(&smc_net_stat_ops) is called\nwithout any error handling.\nIf it fails, registering of &smc_net_ops won't be reverted.\nAnd if smc_nl_init() fails, &smc_net_stat_ops itself won't be reverted.\n\nThis leaves wild ops in subsystem linkedlist and when another module\ntries to call register_pernet_operations() it triggers page fault:\n\nBUG: unable to handle page fault for address: fffffbfff81b964c\nRIP: 0010:register_pernet_operations+0x1b9/0x5f0\nCall Trace:\n  <TASK>\n  register_pernet_subsys+0x29/0x40\n  ebtables_init+0x58/0x1000 [ebtables]\n  ..."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"61defd6450a9ef4a1487090449999b0fd83518ef","versionType":"git"},{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09","versionType":"git"},{"version":"194730a9beb52d2b030ea45e12d94868d4a0e6fd","status":"affected","lessThan":"62ff373da2534534c55debe6c724c7fe14adb97f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.78","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.8","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/61defd6450a9ef4a1487090449999b0fd83518ef"},{"url":"https://git.kernel.org/stable/c/c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09"},{"url":"https://git.kernel.org/stable/c/62ff373da2534534c55debe6c724c7fe14adb97f"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in smc_init() module/subsystem initialization and is reached via local actions such as socket(AF_SMC) module autoload (net-pf-43) or TCP_ULP \"smc\", not by processing remote packets.\nAC:L - An unprivileged local attacker can induce smc_init() failure (e.g., memory pressure on the many GFP_KERNEL allocations and registrations in the init path) and then trigger the dangling ops via netns creation or another pernet registration, without relying on conditions outside their control.\nPR:L - No CAP_SYS_MODULE is required: an unprivileged user can request_module via AF_SMC socket creation, and can create network namespaces through user namespaces to exercise the leaked pernet ops.\nUI:N - Exploitation requires no victim interaction; the attacker triggers module autoload and subsequent pernet list use themselves.\nS:U - Impact is confined to the host kernel authority (oops or privilege escalation within the same kernel); it does not cross a VM/host or other security boundary.\nC:H - Failed modular init frees the module while smc_net_ops or smc_net_stat_ops remain linked, yielding a use-after-free of pernet_operations (including function pointers) that can be reclaimed/sprayed for arbitrary kernel read primitives.\nI:H - The same dangling pernet_operations->init/exit pointers are invoked from setup_net()/register_pernet_operations(), so controlling the freed object enables arbitrary write and control-flow hijacking.\nA:H - The issue produces a kernel page fault/oops when another subsystem walks the corrupted pernet list (as shown with ebtables_init), which is a full availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:56:38.460Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.0.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-49905","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:29:44.271140Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:31:17.447Z"}}]}}}