{"id":"CVE-2024-49994","summary":"block: fix integer overflow in BLKSECDISCARD","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: fix integer overflow in BLKSECDISCARD\n\nI independently rediscovered\n\n\tcommit 22d24a544b0d49bbcbd61c8c0eaf77d3c9297155\n\tblock: fix overflow in blk_ioctl_discard()\n\nbut for secure erase.\n\nSame problem:\n\n\tuint64_t r[2] = {512, 18446744073709551104ULL};\n\tioctl(fd, BLKSECDISCARD, r);\n\nwill enter near infinite loop inside blkdev_issue_secure_erase():\n\n\ta.out: attempt to access beyond end of device\n\tloop0: rw=5, sector=3399043073, nr_sectors = 1024 limit=2048\n\tbio_check_eod: 3286214 callbacks suppressed","modified":"2026-04-02T12:21:12.113801Z","published":"2024-10-21T18:02:35.722Z","related":["SUSE-SU-2025:01600-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49994.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0842ddd83939eb4db940b9af7d39e79722bc41aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/697ba0b6ec4ae04afb67d3911799b5e2043b4455"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c9915fa9410cbb9bd75ee283c03120046c56d3d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8476f8428e8b48fd7a0e4258fa2a96a8f4468239"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a99bacb35c1416355eef957560e8fcac3a665549"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49994.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49994"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"44abff2c0b970ae3d310b97617525dc01f248d7c"},{"fixed":"8476f8428e8b48fd7a0e4258fa2a96a8f4468239"},{"fixed":"a99bacb35c1416355eef957560e8fcac3a665549"},{"fixed":"0842ddd83939eb4db940b9af7d39e79722bc41aa"},{"fixed":"6c9915fa9410cbb9bd75ee283c03120046c56d3d"},{"fixed":"697ba0b6ec4ae04afb67d3911799b5e2043b4455"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49994.json"}}],"schema_version":"1.7.5"}