CVE-2026-80710

s390/dasd: Fix undersized format-check buffer

State
Published
Severity
7.8 High
Published
Aug 28, 2026
Updated
Oct 30, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

s390/dasd: Fix undersized format-check buffer

fmt_buffer_size in dasd_eckd_check_device_format() is declared as int, even though one of the multiplicands, sizeof(struct eckd_count), is a size_t. The expression

trkcount * rpt_max * sizeof(struct eckd_count)

is therefore correctly evaluated at 64-bit width, but the result is silently truncated when it is stored back into the 32-bit fmt_buffer_size variable. For a sufficiently large track range (start_unit/stop_unit are caller-controlled) this truncation yields a buffer size far smaller than the number of tracks actually requested. kzalloc() then succeeds with an undersized allocation, while the subsequent channel program build still operates on the untruncated track count and writes past the end of that buffer.

Compute the buffer size with check_mul_overflow() and keep it in a size_t, so that a value that no longer fits results in -EINVAL instead of a silently truncated allocation size.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before 3d6be353ba0515247f527c6522348ac730b86ff0Affected
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before aca18289c86f22d3fc2f3f6ff615286e7b1702f6Affected
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before 9f88dda2f22927d22498801a92cab6a9424eaf86Affected
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before e16e0fc54120cee3c6f0362de95aab6792865857Affected
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before 87f3389cd3920714c53e704778f7ca7f1cf0c39cAffected
  • 8fd575200db5b53f6ea6818dd017f1b43190db12 to before 7f40b346462f563a0d6e841a77b5163d2a882a04Affected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.151 through 6.6.*Not affected
  • 6.12.103 through 6.12.*Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.8 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.