# CVE-2025-37740: jfs: add sanity check for agwidth in dbMount

- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-05-01T12:55:49.287Z
- Modified: 2026-06-17T09:15:20.797Z
- Weaknesses: CWE-369
- Assigned by: Linux

## Description

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

jfs: add sanity check for agwidth in dbMount

The width in dmapctl of the AG is zero, it trigger a divide error when
calculating the control page level in dbAllocAG.

To avoid this issue, add a check for agwidth in dbAllocAG.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a065cec230aa807c18828a3eee82f1c8592c2adf; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 722e72f7f9c69fcb3ab7988c2471feff7a4c8de1; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a741f29ac8b6374c9904be8b7ac7cdfcd7e7e4fa; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a260bf14cd347878f01f70739ba829442a474a16; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cc0bc4cb62ce5fa0c383e3bf0765d01f46bd49ac; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ccd97c8a4f90810f228ee40d1055148fa146dd57; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c8c96a9e7660e5e5eea445978fe8f2e432d91c1f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e3f85edb03183fb06539e5b50dd2c4bb42b869f0; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ddf2846f22e8575d6b4b6a66f2100f168b8cd73d; 2.6.12 (not affected: before 2.6.12; from 5.4.293 up to 5.4.*; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.135 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 5.4.293; from 5.5 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/a065cec230aa807c18828a3eee82f1c8592c2adf> (patch)
- <https://git.kernel.org/stable/c/722e72f7f9c69fcb3ab7988c2471feff7a4c8de1> (patch)
- <https://git.kernel.org/stable/c/a741f29ac8b6374c9904be8b7ac7cdfcd7e7e4fa> (patch)
- <https://git.kernel.org/stable/c/a260bf14cd347878f01f70739ba829442a474a16> (patch)
- <https://git.kernel.org/stable/c/cc0bc4cb62ce5fa0c383e3bf0765d01f46bd49ac> (patch)
- <https://git.kernel.org/stable/c/ccd97c8a4f90810f228ee40d1055148fa146dd57> (patch)
- <https://git.kernel.org/stable/c/c8c96a9e7660e5e5eea445978fe8f2e432d91c1f> (patch)
- <https://git.kernel.org/stable/c/e3f85edb03183fb06539e5b50dd2c4bb42b869f0> (patch)
- <https://git.kernel.org/stable/c/ddf2846f22e8575d6b4b6a66f2100f168b8cd73d> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list)

## Sources

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

---

Page: https://cve.day/CVE-2025-37740 · Whole record: https://cve.day/CVE-2025-37740.json · Rebuilt by cve.day 2026-11-25T22:58:57.279Z
