CVE-2024-26844

block: Fix WARNING in _copy_from_iter

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b < 8fc80874103a5c20aebdc2401361aa01c817f75b ; affected 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b < 0f1bae071de9967602807472921829a54b2e5956 ; affected 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b < cbaf9be337f7da25742acfce325119e3395b1f1b ; affected 9124d3fe21b0947b03f4b87bcfb7acd675d6e85b < 13f3956eb5681a4045a8dfdef48df5dc4d9f58a6
Linux · Linuxaffected 4.0 ; unaffected 0 < 4.0 ; unaffected 6.1.80 ≤ 6.1.* ; unaffected 6.6.19 ≤ 6.6.* ; unaffected 6.7.7 ≤ 6.7.* ; unaffected 6.8 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD