# CVE-2024-36931: s390/cio: Ensure the copied buf is NUL terminated

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-30 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-36931, DEBIAN-CVE-2024-36931
- Record: https://cvemate.com/vulnerability/CVE-2024-36931 · JSON: https://cvemate.com/vulnerability/CVE-2024-36931/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.233%, percentile 15.206%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 120)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.11-1
- ubuntu linux (Ubuntu): \< 5.15.0-118.128 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1067.73 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1067.73~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1067.73+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1070.79 \| \< 6.8.0-1012.14
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1070.79~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 21)

- <https://git.kernel.org/stable/c/c9d48ce163305595ae20aee27774192476d5e6a5>
- <https://git.kernel.org/stable/c/10452edd175fcc4fd0f5ac782ed2a002e3e5d65c>
- <https://git.kernel.org/stable/c/84b38f48836662c4bfae646c014f4e981e16a2b2>
- <https://git.kernel.org/stable/c/06759ebaf75c19c87b2453a5e130e9e61e9b5d65>
- <https://git.kernel.org/stable/c/da7c622cddd4fe36be69ca61e8c42e43cde94784>
- <https://ubuntu.com/security/CVE-2024-36931>
- <https://www.cve.org/CVERecord?id=CVE-2024-36931>
- <https://git.kernel.org/linus/da7c622cddd4fe36be69ca61e8c42e43cde94784>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6950-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6956-1>
- <https://ubuntu.com/security/notices/USN-6957-1>
- <https://ubuntu.com/security/notices/USN-6950-2>
- <https://ubuntu.com/security/notices/USN-6950-3>
- <https://ubuntu.com/security/notices/USN-6949-2>
- <https://ubuntu.com/security/notices/USN-6952-2>
- <https://ubuntu.com/security/notices/USN-6950-4>
- <https://ubuntu.com/security/notices/USN-7019-1>

---

Data as of 2026-12-05T05:00:20.567Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
