7.8high
dm flakey: don't corrupt the zero page
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: dm flakey: don't corrupt the zero page When we need to zero some range on a block device, the function __blkdev_issue_zero_pages submits a write bio with the bio vector pointing to the zero page. If we use dm-flakey with corrupt bio writes option, it will corrupt the content of the zero page which results in crashes of various userspace programs. Glibc assumes that memory returned by mmap is zeroed and it uses it for calloc implementation; if the newly mapped memory is not zeroed, calloc will return non-zeroed memory. Fix this bug by testing if the page is equal to ZERO_PAGE(0) and avoiding the corruption in this case.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c6cd92fcabd6cc78bb1808c6a18245c842722fc1 before b7f8892f672222dbfcc721f51edc03963212b249, from d4c637af2e56ee1ec66ee34d0ac5a13c75911aec before 98e311be44dbe31ad9c42aa067b2359bac451fda, from a00f5276e26636cbf72f24f79831026d2e2868e7 before 3c4a56ef7c538d16c1738ba0ccea9e7146105b5a, from a00f5276e26636cbf72f24f79831026d2e2868e7 before f2b478228bfdd11e358c5bc197561331f5d5c394, from a00f5276e26636cbf72f24f79831026d2e2868e7 before ff60b2bb680ebcaf8890814dd51084a022891469, from a00f5276e26636cbf72f24f79831026d2e2868e7 before be360c83f2d810493c04f999d69ec9152981e0c0, from a00f5276e26636cbf72f24f79831026d2e2868e7 before 63d31617883d64b43b0e2d529f0751f40713ecae, from a00f5276e26636cbf72f24f79831026d2e2868e7 before f50714b57aecb6b3dc81d578e295f86d9c73f078 and 5 more Not affected: before 5.0, from 4.14.308 up to 4.14.*, from 4.19.276 up to 4.19.*, from 5.4.235 up to 5.4.*, from 5.10.173 up to 5.10.*, from 5.15.99 up to 5.15.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: dm flakey: don't corrupt the zero page When we need to zero some range on a block device, the function __blkdev_issue_zero_pages submits a write bio with the bio vector pointing to the zero page. If we use dm-flakey with corrupt bio writes option, it will corrupt the content of the zero page which results in crashes of various userspace programs. Glibc assumes that memory returned by mmap is zeroed and it uses it for calloc implementation; if the newly mapped memory is not zeroed, calloc will return non-zeroed memory. Fix this bug by testing if the page is equal to ZERO_PAGE(0) and avoiding the corruption in this case.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: dm flakey: no corromper la página cero Cuando necesitamos poner a cero un rango en un dispositivo de bloques, la función __blkdev_issue_zero_pages envía un bio de escritura con el vector bio apuntando a la página cero. Si usamos dm-flakey con la opción de escrituras bio corruptas, corromperá el contenido de la página cero, lo que resulta en fallos de varios programas de espacio de usuario. Glibc asume que la memoria devuelta por mmap está puesta a cero y la usa para la implementación de calloc; si la memoria recién mapeada no está puesta a cero, calloc devolverá memoria no puesta a cero. Soluciona este error probando si la página es igual a ZERO_PAGE(0) y evitando la corrupción en este caso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54317 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2023-54317 changed 2026-10-15 | Public domain |