CVE-2024-26901
do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak
Reported by linux · Published April 17, 2024
In the Linux kernel, the following vulnerability has been resolved: do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak syzbot identified a kernel information leak vulnerability in do_sys_name_to_handle() and issued the following report [1]. [1] "BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in _copy_to_user+0xbc/0x100 lib/usercopy.c:40 instrument_copy_to_user include/linux/instrumented.h:114 [inline] _copy_to_user+0xbc/0x100 lib/usercopy.c:40 copy_to_user include/linux/uaccess.h:191 [inline] do_sys_name_to_handle fs/fhandle.c:73 [inline] __do_sys_name_to_handle_at fs/fhandle.c:112 [inline] __se_sys_name_to_handle_at+0x949/0xb10 fs/fhandle.c:94 __x64_sys_name_to_handle_at+0xe4/0x140 fs/fhandle.c:94 ... Uninit was created at: slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x5c9/0x970 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0x121/0x3c0 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] do_sys_name_to_handle fs/fhandle.c:39 [inline] __do_sys_name_to_handle_at fs/fhandle.c:112 [inline] __se_sys_name_to_handle_at+0x441/0xb10 fs/fhandle.c:94 __x64_sys_name_to_handle_at+0xe4/0x140 fs/fhandle.c:94 ... Bytes 18-19 of 20 are uninitialized Memory access of size 20 starts at ffff888128a46380 Data copied to user address 0000000020000240" Per Chuck Lever's suggestion, use kzalloc() instead of kmalloc() to solve the problem.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 6.1.84-99.169.amzn2023 |
| bpftool | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2 |
| kernel-devel | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2 |
| perf | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2 |
| python-perf | Amazon Linux | 4.14.343-259.562.amzn2 |
| kernel-modules-extra-common | Amazon Linux | 6.1.84-99.169.amzn2023 |
| python3-perf | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel-headers | Amazon Linux | 4.14.343-259.562.amzn2 |
| kernel-livepatch-4.14.343-259.562 | Amazon Linux | 1.0-0.amzn2 |
| kernel-livepatch-6.1.84-99.169 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 990d6c2d7aee921e3bce22b2d6a750fd552262be, 990d6c2d7aee921e3bce22b2d6a750fd552262be, 990d6c2d7aee921e3bce22b2d6a750fd552262be |
| Linux | Linux | 2.6.39, 0, 4.19.311 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-headers | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | kernel-livepatch-4.14.343-259.562 | 0 |
| amazon:2023 | kernel-livepatch-6.1.84-99.169 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
…and 10 more
Timeline
- Apr 17, 2024 CVE Published
- Apr 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 15, 2026 Security Advisory (263 in total, the first dated here)
- Mar 31, 2026 Distribution Patch (206 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26901
vulnetix vdb fixes CVE-2024-26901
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26901/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart