s390/dasd: Fix undersized format-check buffer (Linux Linux)

CVE-2026-80710
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 8fd575200db5b53f6ea6818dd017f1b43190db12 < 3d6be353ba0515247f527c6522348ac730b86ff0 ; affected 8fd575200db5b53f6ea6818dd017f1b43190db12 < aca18289c86f22d3fc2f3f6ff615286e7b1702f6 ; affected 8fd575200db5b53f6ea6818dd017f1b43190db12 < 9f88dda2f22927d22498801a92cab6a9424eaf86 ; affected 8fd575200db5b53f6ea6818dd017f1b43190db12 < e16e0fc54120cee3c6f0362de95aab6792865857 ; affected 8fd575200db5b53f6ea6818dd017f1b43190db12 < 87f3389cd3920714c53e704778f7ca7f1cf0c39c ; affected 8fd575200db5b53f6ea6818dd017f1b43190db12 < 7f40b346462f563a0d6e841a77b5163d2a882a04
Linux · Linuxaffected 4.7 ; unaffected 0 < 4.7 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.151 ≤ 6.6.* ; unaffected 6.12.103 ≤ 6.12.* ; unaffected 6.18.44 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD