---
id: CVE-2025-40312
title: |-
  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
summary: |-
  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 whe…
severity: none
published: '2025-12-08'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T22:10:00.210'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-40312'
references:
  - url: 'https://git.kernel.org/stable/c/1795277a4e98d82e6451544d43695540cee042ea'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/19cce65709a8a2966203653028d9004e28e85bd5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2870a7dec49ccdc3f6ae35da8f5d6737f21133a8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7a5aa54fba2bd591b22b9b624e6baa9037276986'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8d6a9cbd276b3b85da0e7e98208f89416fed9265'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ce054a366c54992185c9514e489a14f145b10c29'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fabc1348bb8fe6bc80850014ee94bd89945f7f4d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00197
epssPercentile: 0.08784
ingestedAt: '2026-10-14T23:00:02.021Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
