{"id":"CVE-2024-50165","summary":"bpf: Preserve param-\u003estring when parsing mount options","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Preserve param-\u003estring when parsing mount options\n\nIn bpf_parse_param(), keep the value of param-\u003estring intact so it can\nbe freed later. Otherwise, the kmalloc area pointed to by param-\u003estring\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    [\u003c00000000c6848ac7\u003e] kmemleak_alloc+0x4b/0x80\n    [\u003c00000000de9f7d00\u003e] __kmalloc_node_track_caller_noprof+0x36e/0x4a0\n    [\u003c000000003e29b886\u003e] memdup_user+0x32/0xa0\n    [\u003c0000000007248326\u003e] strndup_user+0x46/0x60\n    [\u003c0000000035b3dd29\u003e] __x64_sys_fsconfig+0x368/0x3d0\n    [\u003c0000000018657927\u003e] x64_sys_call+0xff/0x9f0\n    [\u003c00000000c0cabc95\u003e] do_syscall_64+0x3b/0xc0\n    [\u003c000000002f331597\u003e] entry_SYSCALL_64_after_hwframe+0x4b/0x53","modified":"2026-04-02T12:21:19.238376Z","published":"2024-11-07T09:31:41.923Z","related":["USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50165.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f97c03f43fadc407de5b5cb01c07755053e1c22"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d7a0a426540319327309035509cb768a2f5c2c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50165.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50165"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6c1752e0b6ca8c7021d6da3926738d8d88f601a9"},{"fixed":"5d7a0a426540319327309035509cb768a2f5c2c4"},{"fixed":"1f97c03f43fadc407de5b5cb01c07755053e1c22"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50165.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}