VDB

CVE-2024-26901

CVE-2024-26901 PUBLISHED CVSS 5.3 MEDIUM

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.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.84-99.169.amzn2023
bpftoolAmazon Linux6.1.84-99.169.amzn2023
kernelAmazon Linux6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2
kernel-develAmazon Linux6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2
perfAmazon Linux6.1.84-99.169.amzn2023, 4.14.343-259.562.amzn2
python-perfAmazon Linux4.14.343-259.562.amzn2
kernel-modules-extra-commonAmazon Linux6.1.84-99.169.amzn2023
python3-perfAmazon Linux6.1.84-99.169.amzn2023
kernel-headersAmazon Linux4.14.343-259.562.amzn2
kernel-livepatch-4.14.343-259.562Amazon Linux1.0-0.amzn2
kernel-livepatch-6.1.84-99.169Amazon Linux1.0-0.amzn2023
kernel-toolsAmazon Linux6.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

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
LinuxLinux990d6c2d7aee921e3bce22b2d6a750fd552262be, 990d6c2d7aee921e3bce22b2d6a750fd552262be, 990d6c2d7aee921e3bce22b2d6a750fd552262be
LinuxLinux2.6.39, 0, 4.19.311
amazon:2023kernel-modules-extra0
amazon:2023bpftool0
amazon:2kernel0
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023perf0
amazon:2python-perf0
amazon:2023kernel-modules-extra-common0
amazon:2kernel-devel0
amazon:2023python3-perf0
amazon:2perf0
amazon:2kernel-headers0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2kernel-livepatch-4.14.343-259.5620
amazon:2023kernel-livepatch-6.1.84-99.1690
amazon:2023kernel-tools0
amazon:2kernel-tools0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›