CVE-2024-26844

block: Fix WARNING in _copy_from_iter

State
Published
Severity
Not scored
Published
Apr 17, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b to before 8fc80874103a5c20aebdc2401361aa01c817f75bAffected
  • 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b to before 0f1bae071de9967602807472921829a54b2e5956Affected
  • 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b to before cbaf9be337f7da25742acfce325119e3395b1f1bAffected
  • 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b to before 13f3956eb5681a4045a8dfdef48df5dc4d9f58a6Affected
LinuxLinux
  • 4.0Affected
  • before 4.0Not affected
  • 6.1.80 through 6.1.*Not affected
  • 6.6.19 through 6.6.*Not affected
  • 6.7.7 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.