CVE-2024-58016
safesetid: check size of policy writes
Check your servers for CVE-2024-58016
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-58016 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
safesetid: check size of policy writes
syzbot attempts to write a buffer with a large size to a sysfs entry with writes handled by handle_policy_update(), triggering a warning in kmalloc.
Check the size specified for write buffers before allocating.
[PM: subject tweak]
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before 976284b94f2021df09829e37a367e19b84d9e5f3 affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before ecf6a4a558097920447a6fb84dfdb279e2ac749a affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before a0dec65f88c8d9290dfa1d2ca1e897abe54c5881 affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before 96fae5bd1589731592d30b3953a90a77ef3928a6 affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before 36b385d0f2b4c0bf41d491e19075ecd990d2bf94 affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before c71d35676d46090c891b6419f253fb92a1a9f4eb affected from aeca4e2ca65c1aeacfbe520684e6421719d99417, before f09ff307c7299392f1c88f763299e24bc99811c7
Other versions: unaffected
|
| Linux |
affected 5.1 unaffected before 5.1 unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.78 up to and including 6.6.* unaffected from 6.12.14 up to and including 6.12.* unaffected from 6.13.3 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-58016 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-58016
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-58016
trivy image --scanners vuln IMAGE | grep CVE-2024-58016
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3 git.kernel.org
- https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a git.kernel.org
- https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881 git.kernel.org
- https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6 git.kernel.org
- https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94 git.kernel.org
- https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb git.kernel.org
- https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2024-58016 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse