CVE-2024-49994 block: fix integer overflow in BLKSECDISCARD
An integer overflow in the Linux kernel's BLKSECDISCARD ioctl allows local attackers to trigger a near-infinite loop, causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-49994?
CVE-2024-49994 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Weakness: CWE-190
Which versions are affected by CVE-2024-49994?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49994?
Apply the vendor's patch.
Is CVE-2024-49994 being exploited?
There is no known exploitation of CVE-2024-49994 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-51426, AZL-51467, BELL-CVE-2024-49994, DEBIAN-CVE-2024-49994, GHSA-qqcr-57gp-2jmq, ROOT-OS-UBUNTU-2204-CVE-2024-49994 and 1 more.