{"id":"CVE-2025-40312","summary":"jfs: Verify inode mode when loading from disk","details":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: Verify inode mode when loading from disk\n\nThe inode mode loaded from corrupted disk can be invalid. Do like what\ncommit 0a9e74051313 (\"isofs: Verify inode mode when loading from disk\")\ndoes.","modified":"2026-04-15T23:59:51.902989022Z","published":"2025-12-08T00:46:38.147Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40312.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1795277a4e98d82e6451544d43695540cee042ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/19cce65709a8a2966203653028d9004e28e85bd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2870a7dec49ccdc3f6ae35da8f5d6737f21133a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a5aa54fba2bd591b22b9b624e6baa9037276986"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d6a9cbd276b3b85da0e7e98208f89416fed9265"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ce054a366c54992185c9514e489a14f145b10c29"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fabc1348bb8fe6bc80850014ee94bd89945f7f4d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40312.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40312"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"19cce65709a8a2966203653028d9004e28e85bd5"},{"fixed":"fabc1348bb8fe6bc80850014ee94bd89945f7f4d"},{"fixed":"46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f"},{"fixed":"2870a7dec49ccdc3f6ae35da8f5d6737f21133a8"},{"fixed":"ce054a366c54992185c9514e489a14f145b10c29"},{"fixed":"1795277a4e98d82e6451544d43695540cee042ea"},{"fixed":"8d6a9cbd276b3b85da0e7e98208f89416fed9265"},{"fixed":"7a5aa54fba2bd591b22b9b624e6baa9037276986"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40312.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"5.4.302"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.247"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.197"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40312.json"}}],"schema_version":"1.7.5"}