All reports
Medium

kernel: Linux kernel (JFS): Data corruption, information disclosure, and system unavailability via invalid inode mode.

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-40312

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel’s Journaled File System (JFS) handling code. When inode metadata is read from disk, the inode mode field was not properly validated. If the filesystem is corrupted and presents an invalid mode value, the kernel may accept and act on that invalid mode, potentially leading to unexpected behavior in file operations, memory corruption, or denial of service. This issue could be triggered by a local attacker with access to a crafted or corrupted JFS filesystem.