# CVE-2025-40312: jfs: Verify inode mode when loading from disk

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-12-08T00:46:38.147Z
- Modified: 2026-10-14T22:10:00.210Z
- Assigned by: Linux

## Description

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

jfs: Verify inode mode when loading from disk

The inode mode loaded from corrupted disk can be invalid. Do like what
commit 0a9e74051313 ("isofs: Verify inode mode when loading from disk")
does.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 19cce65709a8a2966203653028d9004e28e85bd5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fabc1348bb8fe6bc80850014ee94bd89945f7f4d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ce054a366c54992185c9514e489a14f145b10c29; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1795277a4e98d82e6451544d43695540cee042ea; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8d6a9cbd276b3b85da0e7e98208f89416fed9265; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7a5aa54fba2bd591b22b9b624e6baa9037276986; 2.6.12 (not affected: before 2.6.12; from 5.4.302 up to 5.4.*; from 5.10.247 up to 5.10.*; from 5.15.197 up to 5.15.*; from 6.1.159 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/19cce65709a8a2966203653028d9004e28e85bd5>
- <https://git.kernel.org/stable/c/fabc1348bb8fe6bc80850014ee94bd89945f7f4d>
- <https://git.kernel.org/stable/c/46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f>
- <https://git.kernel.org/stable/c/2870a7dec49ccdc3f6ae35da8f5d6737f21133a8>
- <https://git.kernel.org/stable/c/ce054a366c54992185c9514e489a14f145b10c29>
- <https://git.kernel.org/stable/c/1795277a4e98d82e6451544d43695540cee042ea>
- <https://git.kernel.org/stable/c/8d6a9cbd276b3b85da0e7e98208f89416fed9265>
- <https://git.kernel.org/stable/c/7a5aa54fba2bd591b22b9b624e6baa9037276986>

## Sources

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

---

Page: https://cve.day/CVE-2025-40312 · Whole record: https://cve.day/CVE-2025-40312.json · Rebuilt by cve.day 2026-11-25T22:59:08.400Z
