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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-04-17T10:10:08.711Z

Updated: 2024-08-02T00:14:13.656Z

Reserved: 2024-02-19T14:20:24.182Z

Link: CVE-2024-26844

cve-icon Vulnrichment

Updated: 2024-08-02T00:14:13.656Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-04-17T10:15:10.093

Modified: 2024-04-17T12:48:07.510

Link: CVE-2024-26844

cve-icon Redhat

Severity : Low

Publid Date: 2024-04-17T00:00:00Z

Links: CVE-2024-26844 - Bugzilla