7.8

CVE-2026-80710

s390/dasd: Fix undersized format-check buffer

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.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 8fd575200db5b53f6ea6818dd017f1b43190db12
Version < aca18289c86f22d3fc2f3f6ff615286e7b1702f6
Status affected
Version 8fd575200db5b53f6ea6818dd017f1b43190db12
Version < 9f88dda2f22927d22498801a92cab6a9424eaf86
Status affected
Version 8fd575200db5b53f6ea6818dd017f1b43190db12
Version < e16e0fc54120cee3c6f0362de95aab6792865857
Status affected
Version 8fd575200db5b53f6ea6818dd017f1b43190db12
Version < 87f3389cd3920714c53e704778f7ca7f1cf0c39c
Status affected
Version 8fd575200db5b53f6ea6818dd017f1b43190db12
Version < 7f40b346462f563a0d6e841a77b5163d2a882a04
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 4.7
Status affected
Version 0
Version < 4.7
Status unaffected
Version <= 6.6.*
Version 6.6.151
Status unaffected
Version <= 6.12.*
Version 6.12.103
Status unaffected
Version <= 6.18.*
Version 6.18.44
Status unaffected
Version <= 7.1.*
Version 7.1.8
Status unaffected
Version <= *
Version 7.2
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.12% 0.02
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/aca18289c86f22d3fc2f3f6ff615286e7b1702f6
https://git.kernel.org/stable/c/9f88dda2f22927d22498801a92cab6a9424eaf86
https://git.kernel.org/stable/c/e16e0fc54120cee3c6f0362de95aab6792865857
https://git.kernel.org/stable/c/87f3389cd3920714c53e704778f7ca7f1cf0c39c
https://git.kernel.org/stable/c/7f40b346462f563a0d6e841a77b5163d2a882a04