# safesetid: check size of policy writes

CVE record · `CVE-2024-58016`

- **Identifiers:** `CVE-2024-58016`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Feb 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Feb 2025, 02:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before 976284b94f2021df09829e37a367e19b84d9e5f3` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before ecf6a4a558097920447a6fb84dfdb279e2ac749a` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before a0dec65f88c8d9290dfa1d2ca1e897abe54c5881` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before 96fae5bd1589731592d30b3953a90a77ef3928a6` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before 36b385d0f2b4c0bf41d491e19075ecd990d2bf94` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before c71d35676d46090c891b6419f253fb92a1a9f4eb` (git)
  - affected: `aeca4e2ca65c1aeacfbe520684e6421719d99417 to before f09ff307c7299392f1c88f763299e24bc99811c7` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.1`
  - unaffected: `before 5.1` (semver)
  - unaffected: `5.10.235 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.179 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.129 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.78 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.14 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.3 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> CVE-2024-58016 affects the Linux kernel's safesetid security module from 5.1 onward, in versions before the fixes listed in the source; the source lists unaffected versions from 5.10.235, 5.15.179, 6.1.129 and 6.6.78 on their stable branches. The source describes a sysfs policy write with an oversized buffer that triggers a kernel warning in kmalloc, but it gives few details about the impact or who can trigger it. The fix adds a size check on policy write buffers before allocation, so upgrading to a fixed kernel release is the remedy; no other workaround is listed.

Written 19 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0021, the 10th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 27 Feb 2025, 02:12 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2024-58016)
- 27 Feb 2025, 03:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-58016)

## Sources

- [CVE List: CVE-2024-58016](https://www.cve.org/CVERecord?id=CVE-2024-58016)
- [NVD: CVE-2024-58016](https://nvd.nist.gov/vuln/detail/CVE-2024-58016)

### References from the CNA

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

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-58016>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-58016/>. Everything for agents: <https://agentprime.io/llms.txt>.
