CVE-2024-36931

s390/cio: Ensure the copied buf is NUL terminated

HIGH
7.1
CVSS Score
Published: May 30, 2024 at 03:29 PM UTC
Updated: June 17, 2026 at 07:37 AM UTC
1 product affected across 1 vendorLinux Kernel

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
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: s390/cio: Ensure the copied buf is NUL terminated Currently, we allocate a lbuf-sized kernel buffer and copy lbuf from userspace to that buffer. Later, we use scanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using scanf. Fix this issue by using memdup_user_nul instead.

Affected

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

5.13 ≤ v < 5.15.1595.13 ≤ v < 6.1.915.13 ≤ v < 6.6.315.13 ≤ v < 6.8.105.13 ≤ v < 6.95.16 ≤ v < 6.1.916.2 ≤ v < 6.6.316.7 ≤ v < 6.8.106.9 rc16.9 rc26.9 rc36.9 rc46.9 rc56.9 rc6a4f17cc726712a52122ad38540bc3ff3a052d1a4
Vendor states this is fixed in 06759ebaf75c19c87b2453a5e130e9e61e9b5d65 (fixed)
Vendor states this is fixed in 10452edd175fcc4fd0f5ac782ed2a002e3e5d65c (fixed)
Vendor states this is fixed in 84b38f48836662c4bfae646c014f4e981e16a2b2 (fixed)
Vendor states this is fixed in c9d48ce163305595ae20aee27774192476d5e6a5 (fixed)
Vendor states this is fixed in da7c622cddd4fe36be69ca61e8c42e43cde94784 (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.159 (unaffected)
Vendor states this is fixed in 6.1.91 (unaffected)
Vendor states this is fixed in 6.6.31 (unaffected)
Vendor states this is fixed in 6.8.10 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-125

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