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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-08T00:46:38.147Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 19cce65709a8a2966203653028d9004e28e85bd5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fabc1348bb8fe6bc80850014ee94bd89945f7f4d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ce054a366c54992185c9514e489a14f145b10c29; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1795277a4e98d82e6451544d43695540cee042ea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d6a9cbd276b3b85da0e7e98208f89416fed9265; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7a5aa54fba2bd591b22b9b624e6baa9037276986
- Anyone running Linux 2.6.12

## 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.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 19cce65709a8a2966203653028d9004e28e85bd5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fabc1348bb8fe6bc80850014ee94bd89945f7f4d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ce054a366c54992185c9514e489a14f145b10c29; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1795277a4e98d82e6451544d43695540cee042ea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d6a9cbd276b3b85da0e7e98208f89416fed9265; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7a5aa54fba2bd591b22b9b624e6baa9037276986 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 7a5aa54fba2bd591b22b9b624e6baa9037276986 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40312. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40312.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 19cce65709a8a2966203653028d9004e28e85bd5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fabc1348bb8fe6bc80850014ee94bd89945f7f4d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 19cce65709a8a2966203653028d9004e28e85bd5, Linux 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f, Linux 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8, Linux 1795277a4e98d82e6451544d43695540cee042ea, Linux 8d6a9cbd276b3b85da0e7e98208f89416fed9265, Linux 7a5aa54fba2bd591b22b9b624e6baa9037276986

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40312 being exploited?

There is no confirmed exploitation: CVE-2025-40312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40312?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40312?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 19cce65709a8a2966203653028d9004e28e85bd5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fabc1348bb8fe6bc80850014ee94bd89945f7f4d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ce054a366c54992185c9514e489a14f145b10c29; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1795277a4e98d82e6451544d43695540cee042ea; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d6a9cbd276b3b85da0e7e98208f89416fed9265; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7a5aa54fba2bd591b22b9b624e6baa9037276986; Linux 2.6.12.

### Is there a fix for CVE-2025-40312?

Yes. Fixed in Linux 19cce65709a8a2966203653028d9004e28e85bd5, Linux 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f, Linux 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8, Linux 1795277a4e98d82e6451544d43695540cee042ea, Linux 8d6a9cbd276b3b85da0e7e98208f89416fed9265, Linux 7a5aa54fba2bd591b22b9b624e6baa9037276986. Upgrade Linux to 7a5aa54fba2bd591b22b9b624e6baa9037276986 or later.

### How do I check if I'm affected by CVE-2025-40312?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40312>

HTML: <https://flawdb.com/CVE-2025-40312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40312>
