CVE-2024-36931

s390/cio: Ensure the copied buf is NUL terminated

No CVSS score yet EPSS 0.23%

Published 30 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-36931

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36931 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a4f17cc726712a52122ad38540bc3ff3a052d1a4, before c9d48ce163305595ae20aee27774192476d5e6a5
affected from a4f17cc726712a52122ad38540bc3ff3a052d1a4, before 10452edd175fcc4fd0f5ac782ed2a002e3e5d65c
affected from a4f17cc726712a52122ad38540bc3ff3a052d1a4, before 84b38f48836662c4bfae646c014f4e981e16a2b2
affected from a4f17cc726712a52122ad38540bc3ff3a052d1a4, before 06759ebaf75c19c87b2453a5e130e9e61e9b5d65
affected from a4f17cc726712a52122ad38540bc3ff3a052d1a4, before da7c622cddd4fe36be69ca61e8c42e43cde94784
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.159 up to and including 5.15.*
unaffected from 6.1.91 up to and including 6.1.*
unaffected from 6.6.31 up to and including 6.6.*
unaffected from 6.8.10 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36931 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36931

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-36931
trivy image --scanners vuln IMAGE | grep CVE-2024-36931

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-36931 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.