{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-50165",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-10-21T19:36:19.962Z",
        "datePublished": "2024-11-07T09:31:41.923Z",
        "dateUpdated": "2026-08-05T11:42:13.725Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:42:13.725Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Preserve param->string when parsing mount options\n\nIn bpf_parse_param(), keep the value of param->string intact so it can\nbe freed later. Otherwise, the kmalloc area pointed to by param->string\nwill be leaked as shown below:\n\nunreferenced object 0xffff888118c46d20 (size 8):\n  comm \"new_name\", pid 12109, jiffies 4295580214\n  hex dump (first 8 bytes):\n    61 6e 79 00 38 c9 5c 7e                          any.8.\\~\n  backtrace (crc e1b7f876):\n    [<00000000c6848ac7>] kmemleak_alloc+0x4b/0x80\n    [<00000000de9f7d00>] __kmalloc_node_track_caller_noprof+0x36e/0x4a0\n    [<000000003e29b886>] memdup_user+0x32/0xa0\n    [<0000000007248326>] strndup_user+0x46/0x60\n    [<0000000035b3dd29>] __x64_sys_fsconfig+0x368/0x3d0\n    [<0000000018657927>] x64_sys_call+0xff/0x9f0\n    [<00000000c0cabc95>] do_syscall_64+0x3b/0xc0\n    [<000000002f331597>] entry_SYSCALL_64_after_hwframe+0x4b/0x53"
                }
            ],
            "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 reached through the fsopen(2)/fsconfig(2) syscall pair (or mount(2) with monolithic options) against the bpf filesystem, requiring local system access. There is no remote or adjacent-network path to bpffs mount-option parsing.\nAC:L - A single deterministic fsconfig() call with delegate_cmds=\"x:any\" reliably triggers the interior-pointer kfree(), and a trivial loop reliably drives the unbounded leak; no race, timing window, or uncontrollable precondition is involved. CONFIG_BPF_SYSCALL/bpffs is enabled in essentially all distribution kernels.\nPR:L - bpf_fs_type is FS_USERNS_MOUNT and fsopen() only requires ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN), so any unprivileged user can reach bpf_parse_param() via unshare -Urm. The CAP_SYS_ADMIN check on delegation options executes only after the buggy strsep loop, so it provides no protection.\nUI:N - The attacker performs the entire sequence — create a user/mount namespace, fsopen the bpf filesystem, issue fsconfig — with no action by any other user. No victim must mount anything or open any file.\nS:U - The corruption and resource exhaustion occur in the kernel slab allocator of the same host, within the same security authority. No VM, IOMMU, or hypervisor boundary is crossed.\nC:H - Freeing an interior pointer inserts a misaligned address into the SLUB freelist, so a subsequent allocation returns a chunk overlapping adjacent live objects — a type-confusion/aliasing primitive that lets the attacker read kernel data belonging to other allocations. Per kernel scoring guidance, slab corruption of this class is treated as a full confidentiality compromise.\nI:H - The same misaligned kfree() causes set_freepointer() to write a heap pointer out of bounds of the freed chunk and hands out overlapping allocations, giving an attacker-usable write primitive over adjacent slab objects. Heap freelist corruption of this kind is the standard basis for privilege escalation.\nA:H - Slab freelist corruption produces kernel panics/oopses (and is caught immediately as an invalid free on KASAN/SLUB_DEBUG builds), and the leak variant lets an unprivileged user drain kernel memory in an unbounded loop until OOM. Either path yields a full denial of service."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "6c1752e0b6ca8c7021d6da3926738d8d88f601a9",
                            "lessThan": "5d7a0a426540319327309035509cb768a2f5c2c4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6c1752e0b6ca8c7021d6da3926738d8d88f601a9",
                            "lessThan": "1f97c03f43fadc407de5b5cb01c07755053e1c22",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/bpf/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "6.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11.6",
                            "lessThanOrEqual": "6.11.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12",
                            "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": "6.9",
                                    "versionEndExcluding": "6.11.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.9",
                                    "versionEndExcluding": "6.12"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/5d7a0a426540319327309035509cb768a2f5c2c4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1f97c03f43fadc407de5b5cb01c07755053e1c22"
                }
            ],
            "title": "bpf: Preserve param->string when parsing mount options",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 5.5,
                            "attackVector": "LOCAL",
                            "baseSeverity": "MEDIUM",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                            "integrityImpact": "NONE",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "NONE"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-50165",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-10-01T20:20:04.347964Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-401",
                                "description": "CWE-401 Missing Release of Memory after Effective Lifetime"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-10-01T20:27:11.791Z"
                }
            }
        ]
    }
}