{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49905",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-05-01T14:05:17.246Z",
        "datePublished": "2025-05-01T14:10:49.621Z",
        "dateUpdated": "2026-08-05T08:56:38.460Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:56:38.460Z"
            },
            "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  ..."
                }
            ],
            "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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/smc/af_smc.c"
                    ],
                    "versions": [
                        {
                            "version": "194730a9beb52d2b030ea45e12d94868d4a0e6fd",
                            "lessThan": "61defd6450a9ef4a1487090449999b0fd83518ef",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "194730a9beb52d2b030ea45e12d94868d4a0e6fd",
                            "lessThan": "c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "194730a9beb52d2b030ea45e12d94868d4a0e6fd",
                            "lessThan": "62ff373da2534534c55debe6c724c7fe14adb97f",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/smc/af_smc.c"
                    ],
                    "versions": [
                        {
                            "version": "5.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.78",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.8",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
                }
            ],
            "title": "net/smc: Fix possible leaked pernet namespace in smc_init()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}