CVE-2024-50165
published high CVSS 3.1 · 7.8bpf: Preserve param->string when parsing mount options
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6c1752e0b6ca8c7021d6da3926738d8d88f601a9 to < 5d7a0a426540319327309035509cb768a2f5c2c4 · 6c1752e0b6ca8c7021d6da3926738d8d88f601a9 to < 1f97c03f43fadc407de5b5cb01c07755053e1c22 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.11.6 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | noble | linux-buildinfo-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | noble | linux-headers-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-image-unsigned-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-ipu6-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-ipu7-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-usbio-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-modules-vision-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11-headers-6.11.0-1015 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-oem-6.11-tools-6.11.0-1015 | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | noble | linux-tools-6.11.0-1015-oem | Advisory build | 6.11.0-1015.15 | USN-7310-1 |
| Ubuntu | oracular | linux | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-cloud-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-aws-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-cloud-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-azure-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-bpf-dev | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-buildinfo-6.11.0-18-generic-64k | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-18 | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-cloud-tools-common | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-doc | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-gcp-headers-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-gcp-tools-6.11.0-1009 | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18 | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-headers-6.11.0-18-generic-64k | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-6.11.0-1008-raspi | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-image-6.11.0-1008-raspi-dbgsym | Advisory build | 6.11.0-1008.8 | USN-7277-1 |
| Ubuntu | oracular | linux-image-6.11.0-18-generic | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-6.11.0-18-generic-dbgsym | Advisory build | 6.11.0-18.18 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1005-realtime | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1005-realtime-dbgsym | Advisory build | 6.11.0-1005.5 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-aws | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-aws-dbgsym | Advisory build | 6.11.0-1009.10 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-azure | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-azure-dbgsym | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-gcp | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1009-gcp-dbgsym | Advisory build | 6.11.0-1009.9 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-64k | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-64k-dbgsym | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1010-lowlatency-dbgsym | Advisory build | 6.11.0-1010.11 | USN-7276-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle-64k | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
| Ubuntu | oracular | linux-image-unsigned-6.11.0-1011-oracle-64k-dbgsym | Advisory build | 6.11.0-1011.12 | USN-7277-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Preserve param->string when parsing mount options In bpf_parse_param(), keep the value of param->string intact so it can be freed later. Otherwise, the kmalloc area pointed to by param->string will be leaked as shown below: unreferenced object 0xffff888118c46d20 (size 8): comm "new_name", pid 12109, jiffies 4295580214 hex dump (first 8 bytes): 61 6e 79 00 38 c9 5c 7e any.8.\~ backtrace (crc e1b7f876): [<00000000c6848ac7>] kmemleak_alloc+0x4b/0x80 [<00000000de9f7d00>] __kmalloc_node_track_caller_noprof+0x36e/0x4a0 [<000000003e29b886>] memdup_user+0x32/0xa0 [<0000000007248326>] strndup_user+0x46/0x60 [<0000000035b3dd29>] __x64_sys_fsconfig+0x368/0x3d0 [<0000000018657927>] x64_sys_call+0xff/0x9f0 [<00000000c0cabc95>] do_syscall_64+0x3b/0xc0 [<000000002f331597>] entry_SYSCALL_64_after_hwframe+0x4b/0x53
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6c1752e0b6ca8c7021d6da3926738d8d88f601a9 to < 5d7a0a426540319327309035509cb768a2f5c2c4 (affected · git)6c1752e0b6ca8c7021d6da3926738d8d88f601a9 to < 1f97c03f43fadc407de5b5cb01c07755053e1c22 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.11.6 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
References
2Provider assertions
2Linux · cna
bpf: Preserve param->string when parsing mount options
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f9967d83e831be9731533eb90702acf1f3bef3666691bc544a5366b0e4ea7274
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record