CVE-2024-42295

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42295
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42295.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42295
Downstream
Related
Published
2024-08-17T09:09:03.618Z
Modified
2025-11-27T02:33:53.777947Z
Summary
nilfs2: handle inconsistent state in nilfs_btnode_create_block()
Details

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: handle inconsistent state in nilfsbtnodecreate_block()

Syzbot reported that a buffer state inconsistency was detected in nilfsbtnodecreate_block(), triggering a kernel bug.

It is not appropriate to treat this inconsistency as a bug; it can occur if the argument block address (the buffer index of the newly created block) is a virtual block number and has been reallocated due to corruption of the bitmap used to manage its allocation state.

So, modify nilfsbtnodecreate_block() and its callers to treat it as a possible filesystem error, rather than triggering a kernel bug.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2024/42xxx/CVE-2024-42295.json"
}
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
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
19cce46238ffe3546e44b9c74057103ff8b24c62
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
02b87e6334a38c65eef49848d3f1ac422f0b2a44
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
e34191cce3ee63dfa5fb241904aaf2a042d5b6d8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
012be828a118bf496e666ef1fc47fc0e7358ada2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
be56dfc9be0604291267c07b0e27a69a6bda4899
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
366c3f688dd0288cbe38af1d3a886b5c62372e4a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60be987d45dd510aeb54389526f9957cfab106c
Fixed
4811f7af6090e8f5a398fbdd766f903ef6c0d787

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.30
Fixed
4.19.320
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.282
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.224
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.165
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.103
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.44
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.3