CVE-2025-40312

jfs: Verify inode mode when loading from disk

No CVSS score yet EPSS 0.21%

Published 8 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-40312

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40312 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 19cce65709a8a2966203653028d9004e28e85bd5
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fabc1348bb8fe6bc80850014ee94bd89945f7f4d
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ce054a366c54992185c9514e489a14f145b10c29
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 1795277a4e98d82e6451544d43695540cee042ea
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8d6a9cbd276b3b85da0e7e98208f89416fed9265
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7a5aa54fba2bd591b22b9b624e6baa9037276986
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.4.302 up to and including 5.4.*
unaffected from 5.10.247 up to and including 5.10.*
unaffected from 5.15.197 up to and including 5.15.*
unaffected from 6.1.159 up to and including 6.1.*
unaffected from 6.6.117 up to and including 6.6.*
unaffected from 6.12.58 up to and including 6.12.*
unaffected from 6.17.8 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40312 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40312

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40312
trivy image --scanners vuln IMAGE | grep CVE-2025-40312

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40312 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.