VDB

CVE-2024-36931

CVE-2024-36931 PUBLISHED

s390/cio: Ensure the copied buf is NUL terminated

Reported by linux · Published May 30, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxda7c622cddd4fe36be69ca61e8c42e43cde94784, c9d48ce163305595ae20aee27774192476d5e6a5, 84b38f48836662c4bfae646c014f4e981e16a2b2, 10452edd175fcc4fd0f5ac782ed2a002e3e5d65c, 06759ebaf75c19c87b2453a5e130e9e61e9b5d65

Affected products

VendorProductVersions
LinuxLinuxa4f17cc726712a52122ad38540bc3ff3a052d1a4, a4f17cc726712a52122ad38540bc3ff3a052d1a4, a4f17cc726712a52122ad38540bc3ff3a052d1a4
LinuxLinux5.13, 0, 5.15.159
LinuxLinux*, 6.8.10, 6.9
linuxlinux_kernel5.13, 5.13, 5.13

Timeline

  • May 30, 2024 CVE Published
  • May 31, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 9, 2026 Security Advisory (330 in total, the first dated here)
  • Jan 9, 2026 CVE Updated
  • Mar 30, 2026 Distribution Patch (234 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-36931
vulnetix vdb fixes CVE-2024-36931

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-36931/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›