CVE-2024-49994

Severity CVSS v4.0:
Pending analysis
Type:
CWE-190 Integer Overflow or Wraparound
Publication date:
21/10/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> block: fix integer overflow in BLKSECDISCARD<br /> <br /> I independently rediscovered<br /> <br /> commit 22d24a544b0d49bbcbd61c8c0eaf77d3c9297155<br /> block: fix overflow in blk_ioctl_discard()<br /> <br /> but for secure erase.<br /> <br /> Same problem:<br /> <br /> uint64_t r[2] = {512, 18446744073709551104ULL};<br /> ioctl(fd, BLKSECDISCARD, r);<br /> <br /> will enter near infinite loop inside blkdev_issue_secure_erase():<br /> <br /> a.out: attempt to access beyond end of device<br /> loop0: rw=5, sector=3399043073, nr_sectors = 1024 limit=2048<br /> bio_check_eod: 3286214 callbacks suppressed

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.10.14 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.11 (including) 6.11.3 (excluding)