# CVE-2024-58016: safesetid: check size of policy writes

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-02-27T02:12:08.547Z
- Modified: 2026-11-10T13:17:29.080Z
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from aeca4e2ca65c1aeacfbe520684e6421719d99417 before 976284b94f2021df09829e37a367e19b84d9e5f3; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before ecf6a4a558097920447a6fb84dfdb279e2ac749a; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before a0dec65f88c8d9290dfa1d2ca1e897abe54c5881; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before 96fae5bd1589731592d30b3953a90a77ef3928a6; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before 36b385d0f2b4c0bf41d491e19075ecd990d2bf94; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before c71d35676d46090c891b6419f253fb92a1a9f4eb; from aeca4e2ca65c1aeacfbe520684e6421719d99417 before f09ff307c7299392f1c88f763299e24bc99811c7; 5.1 (not affected: before 5.1; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.78 up to 6.6.*; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.1 before 5.10.235; from 5.11 before 5.15.179; from 5.16 before 6.1.129; from 6.2 before 6.6.78; from 6.7 before 6.12.14; from 6.13 before 6.13.3

## References

- <https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3> (patch)
- <https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a> (patch)
- <https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881> (patch)
- <https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6> (patch)
- <https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94> (patch)
- <https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb> (patch)
- <https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2024-58016](https://www.cve.org/CVERecord?id=CVE-2024-58016), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2024-58016](https://nvd.nist.gov/vuln/detail/CVE-2024-58016), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2024-58016 · Whole record: https://cve.day/CVE-2024-58016.json · Rebuilt by cve.day 2026-11-25T22:58:52.106Z
