CVE-2024-49994CWE-190

CVE-2024-49994

Medium · published October 21, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
14.3
In the wild
Unconfirmed
What it is

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

block: fix integer overflow in BLKSECDISCARD

I independently rediscovered

commit 22d24a544b0d49bbcbd61c8c0eaf77d3c9297155

block: fix overflow in blk_ioctl_discard()

but for secure erase.

Same problem:

uint64_t r[2] = {512, 18446744073709551104ULL};

ioctl(fd, BLKSECDISCARD, r);

will enter near infinite loop inside blkdev_issue_secure_erase():

a.out: attempt to access beyond end of device

loop0: rw=5, sector=3399043073, nr_sectors = 1024 limit=2048

bio_check_eod: 3286214 callbacks suppressed

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00241 · 14.3th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2024-10-21T22:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel< 6.10.146.10.14
linux/linux_kernel≥ 6.11, < 6.11.36.11.3
References (8)
EPSS history
Timeline
  • 21 OCT 18:02Z
    block: fix integer overflow in BLKSECDISCARD
    cvelistv5