CVE-2024-58016

safesetid: check size of policy writes

MEDIUM
5.5
CVSS Score
Published: February 27, 2025 at 02:12 AM UTC
Updated: October 15, 2026 at 02:17 AM UTC
5 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.1 ≤ v < 5.10.2355.11 ≤ v < 5.15.1795.16 ≤ v < 6.1.1296.13 ≤ v < 6.13.36.2 ≤ v < 6.6.786.7 ≤ v < 6.12.145.1aeca4e2ca65c1aeacfbe520684e6421719d99417
Vendor states this is fixed in 36b385d0f2b4c0bf41d491e19075ecd990d2bf94 (fixed)
Vendor states this is fixed in 96fae5bd1589731592d30b3953a90a77ef3928a6 (fixed)
Vendor states this is fixed in 976284b94f2021df09829e37a367e19b84d9e5f3 (fixed)
Vendor states this is fixed in a0dec65f88c8d9290dfa1d2ca1e897abe54c5881 (fixed)
Vendor states this is fixed in c71d35676d46090c891b6419f253fb92a1a9f4eb (fixed)
Vendor states this is fixed in ecf6a4a558097920447a6fb84dfdb279e2ac749a (fixed)
Vendor states this is fixed in f09ff307c7299392f1c88f763299e24bc99811c7 (fixed)
Vendor states this is fixed in 5.1 (unaffected)
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.78 (unaffected)

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card