CVE-2024-26844

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

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*

History

02 Apr 2025, 13:17

Type Values Removed Values Added
CWE NVD-CWE-noinfo
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/0f1bae071de9967602807472921829a54b2e5956 - () https://git.kernel.org/stable/c/0f1bae071de9967602807472921829a54b2e5956 - Patch
References () https://git.kernel.org/stable/c/13f3956eb5681a4045a8dfdef48df5dc4d9f58a6 - () https://git.kernel.org/stable/c/13f3956eb5681a4045a8dfdef48df5dc4d9f58a6 - Patch
References () https://git.kernel.org/stable/c/8fc80874103a5c20aebdc2401361aa01c817f75b - () https://git.kernel.org/stable/c/8fc80874103a5c20aebdc2401361aa01c817f75b - Patch
References () https://git.kernel.org/stable/c/cbaf9be337f7da25742acfce325119e3395b1f1b - () https://git.kernel.org/stable/c/cbaf9be337f7da25742acfce325119e3395b1f1b - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5

21 Nov 2024, 09:03

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: Reparar ADVERTENCIA en _copy_from_iter Syzkaller informa una advertencia en _copy_from_iter porque supuestamente se usa un iov_iter en la dirección incorrecta. La razón es que syzcaller logró generar una solicitud con una dirección de transferencia de SG_DXFER_TO_FROM_DEV. Esto le indica al kernel que copie los buffers del usuario en el kernel, los lea en los buffers copiados y luego copie los datos nuevamente al espacio del usuario. Por tanto, el iovec se utiliza en ambas direcciones. Detecte esta situación en la capa de bloque y construya un nuevo iterador con la dirección correcta para la copia.
References () https://git.kernel.org/stable/c/0f1bae071de9967602807472921829a54b2e5956 - () https://git.kernel.org/stable/c/0f1bae071de9967602807472921829a54b2e5956 -
References () https://git.kernel.org/stable/c/13f3956eb5681a4045a8dfdef48df5dc4d9f58a6 - () https://git.kernel.org/stable/c/13f3956eb5681a4045a8dfdef48df5dc4d9f58a6 -
References () https://git.kernel.org/stable/c/8fc80874103a5c20aebdc2401361aa01c817f75b - () https://git.kernel.org/stable/c/8fc80874103a5c20aebdc2401361aa01c817f75b -
References () https://git.kernel.org/stable/c/cbaf9be337f7da25742acfce325119e3395b1f1b - () https://git.kernel.org/stable/c/cbaf9be337f7da25742acfce325119e3395b1f1b -

17 Apr 2024, 12:48

Type Values Removed Values Added
New CVE

Information

Published : 2024-04-17 10:15

Updated : 2025-04-02 13:17


NVD link : CVE-2024-26844

Mitre link : CVE-2024-26844

CVE.ORG link : CVE-2024-26844


JSON object : View

Products Affected

linux

  • linux_kernel