# CVE-2024-44938: jfs: Fix shift-out-of-bounds in dbDiscardAG

- 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.30%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-08-26T11:20:43.340Z
- Modified: 2026-06-17T07:53:15.937Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

jfs: Fix shift-out-of-bounds in dbDiscardAG

When searching for the next smaller log2 block, BLKSTOL2() returned 0,
causing shift exponent -1 to be negative.

This patch fixes the issue by exiting the loop directly when negative
shift is found.

(As written by CVE List.)

## Affected

- Linux Linux: from b40c2e665cd552eae5fbdbb878bc29a34357668e before bb7c605a754823b86dd74f6537ccb9d38a9dec5a; from b40c2e665cd552eae5fbdbb878bc29a34357668e before 4de2c04c3acd5b84f50b0d2f8f09e9b2f42374b9; from b40c2e665cd552eae5fbdbb878bc29a34357668e before bd04a149e3a29e7f71b7956ed41dba34e42d539e; from b40c2e665cd552eae5fbdbb878bc29a34357668e before f650148b43949ca9e37e820804bb6026fff404f3; from b40c2e665cd552eae5fbdbb878bc29a34357668e before 234e6ea0855cdb5673d54ecaf7dc5c78f3e84630; from b40c2e665cd552eae5fbdbb878bc29a34357668e before 7063b80268e2593e58bee8a8d709c2f3ff93e2f2; 3.7 (not affected: before 3.7; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.107 up to 6.1.*; from 6.6.47 up to 6.6.*; from 6.10.6 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: before 6.6.47; from 6.7 before 6.10.6

## References

- <https://git.kernel.org/stable/c/bb7c605a754823b86dd74f6537ccb9d38a9dec5a>
- <https://git.kernel.org/stable/c/4de2c04c3acd5b84f50b0d2f8f09e9b2f42374b9>
- <https://git.kernel.org/stable/c/bd04a149e3a29e7f71b7956ed41dba34e42d539e> (issue-tracking)
- <https://git.kernel.org/stable/c/f650148b43949ca9e37e820804bb6026fff404f3> (patch)
- <https://git.kernel.org/stable/c/234e6ea0855cdb5673d54ecaf7dc5c78f3e84630> (patch)
- <https://git.kernel.org/stable/c/7063b80268e2593e58bee8a8d709c2f3ff93e2f2> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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