CVEvulnerability

CVE-2024-26844

5.5 MEDIUM Published 2024-04-17 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2024-04-17
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Description

In the Linux kernel, the following vulnerability has been resolved: block: Fix WARNING in _copy_from_iter Syzkaller reports a warning in _copy_from_iter because an iov_iter is supposedly used in the wrong direction. The reason is that syzcaller managed to generate a request with a transfer direction of SG_DXFER_TO_FROM_DEV. This instructs the kernel to copy user buffers into the kernel, read into the copied buffers and then copy the data back to user space. Thus the iovec is used in both directions. Detect this situation in the block layer and construct a new iterator with the correct direction for the copy-in.

Affected configurations

• linux linux kernel (< 6.1.80) • linux linux kernel (>= 6.2 < 6.6.19) • linux linux kernel (>= 6.7 < 6.7.7) • linux linux kernel 6.8

References