# CVE-2024-49994: block: fix integer overflow in BLKSECDISCARD

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-10-21T18:02:35.722Z
- Modified: 2026-11-10T13:17:24.453Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 44abff2c0b970ae3d310b97617525dc01f248d7c before 8476f8428e8b48fd7a0e4258fa2a96a8f4468239; from 44abff2c0b970ae3d310b97617525dc01f248d7c before a99bacb35c1416355eef957560e8fcac3a665549; from 44abff2c0b970ae3d310b97617525dc01f248d7c before 0842ddd83939eb4db940b9af7d39e79722bc41aa; from 44abff2c0b970ae3d310b97617525dc01f248d7c before 6c9915fa9410cbb9bd75ee283c03120046c56d3d; from 44abff2c0b970ae3d310b97617525dc01f248d7c before 697ba0b6ec4ae04afb67d3911799b5e2043b4455; 5.19 (not affected: before 5.19; from 6.1.128 up to 6.1.*; from 6.6.75 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.10.14; from 6.11 before 6.11.3

## References

- <https://git.kernel.org/stable/c/8476f8428e8b48fd7a0e4258fa2a96a8f4468239>
- <https://git.kernel.org/stable/c/a99bacb35c1416355eef957560e8fcac3a665549>
- <https://git.kernel.org/stable/c/0842ddd83939eb4db940b9af7d39e79722bc41aa> (patch)
- <https://git.kernel.org/stable/c/6c9915fa9410cbb9bd75ee283c03120046c56d3d> (patch)
- <https://git.kernel.org/stable/c/697ba0b6ec4ae04afb67d3911799b5e2043b4455> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2024-49994](https://www.cve.org/CVERecord?id=CVE-2024-49994), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2024-49994](https://nvd.nist.gov/vuln/detail/CVE-2024-49994), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2024-49994 · Whole record: https://cve.day/CVE-2024-49994.json · Rebuilt by cve.day 2026-11-25T22:58:47.081Z
