Linux Kernel UBIFS Read Out-of-Bounds Vulnerability in Buffer Writing Function

Vulnerability

A read out-of-bounds vulnerability has been identified in the Linux kernel's UBIFS (Unsorted Block Image File System) module. The issue arises in the function 'ubifs_wbuf_write_nolock()', which improperly handles buffer lengths that are not aligned to eight bytes. This misalignment can lead to the function accessing memory outside the intended bounds, potentially causing a slab-out-of-bounds error. The vulnerability can be triggered during normal write operations, where the unaligned length is not correctly managed before writing to the log-structured file system.

Impact

Exploitation of this vulnerability can lead to out-of-bounds memory access, which is typically associated with memory corruption issues. In this case, the Kernel Address Sanitizer (KASAN) detected the out-of-bounds read, indicating a potential memory corruption scenario that could be exploited.

Reproduction

The vulnerability can be reproduced by writing data to the UBIFS that is not properly aligned to an eight-byte boundary. This can be done by using the 'ubifs_jnl_write_inode' function to initiate a write operation with an unaligned length. The 'ubifs_wbuf_write_nolock()' function will then process the length incorrectly, leading to a read out-of-bounds condition.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.