Linux Kernel Netfs Component Asynchronous Direct I/O Vulnerability

Vulnerability

A vulnerability in the Linux kernel's netfs component has been addressed. The issue arose because netfs_extract_user_iter() could not properly handle kernel-initiated asynchronous direct I/O (DIO) when supplied with a bio_vec array. This limitation was triggered by a combination of the Common Internet File System (CIFS) and a loopback block device. The improper handling caused warnings and write operations to fail. The vulnerability has been resolved by modifying netfs_unbuffered_write_iter_locked() to correctly process asynchronous kernel DIO writes.

Impact

The vulnerability could lead to warnings being logged and write operations failing, disrupting intended data transfer processes.

Reproduction

The vulnerability could be reproduced by mounting a CIFS share, creating a file on the mounted share, and then setting up a loopback device with direct I/O enabled. Writing data to the loopback device would trigger the vulnerability, causing a warning to be logged and the write operation to fail.

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
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.