CVE-2023-54317

Source
https://cve.org/CVERecord?id=CVE-2023-54317
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54317.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54317
Downstream
Related
Published
2025-12-30T12:23:47.232Z
Modified
2026-03-11T07:44:49.057571Z
Summary
dm flakey: don't corrupt the zero page
Details

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54317.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c6cd92fcabd6cc78bb1808c6a18245c842722fc1
Fixed
b7f8892f672222dbfcc721f51edc03963212b249
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d4c637af2e56ee1ec66ee34d0ac5a13c75911aec
Fixed
98e311be44dbe31ad9c42aa067b2359bac451fda
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a00f5276e26636cbf72f24f79831026d2e2868e7
Fixed
3c4a56ef7c538d16c1738ba0ccea9e7146105b5a
Fixed
f2b478228bfdd11e358c5bc197561331f5d5c394
Fixed
ff60b2bb680ebcaf8890814dd51084a022891469
Fixed
be360c83f2d810493c04f999d69ec9152981e0c0
Fixed
63d31617883d64b43b0e2d529f0751f40713ecae
Fixed
f50714b57aecb6b3dc81d578e295f86d9c73f078
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
1ed7c9f45fb893877ffa7cedd7aa61beaadbb328

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54317.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.14.308
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.276
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.235
Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.10.173
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.15.99
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
6.1.16
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.2.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54317.json"