CVE-2023-54293

Source
https://cve.org/CVERecord?id=CVE-2023-54293
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54293.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54293
Downstream
Related
Published
2025-12-30T12:23:31.111Z
Modified
2026-03-31T17:29:26.910181661Z
Summary
bcache: fixup btree_cache_wait list damage
Details

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

bcache: fixup btreecachewait list damage

We get a kernel crash about "list_add corruption. next->prev should be prev (ffff9c801bc01210), but was ffff9c77b688237c. (next=ffffae586d8afe68)."

crash> struct listhead 0xffff9c801bc01210 struct listhead { next = 0xffffae586d8afe68, prev = 0xffffae586d8afe68 } crash> struct listhead 0xffff9c77b688237c struct listhead { next = 0x0, prev = 0x0 } crash> struct listhead 0xffffae586d8afe68 struct listhead struct: invalid kernel virtual address: ffffae586d8afe68 type: "gdbreadmemcallback" Cannot access memory at address 0xffffae586d8afe68

[230469.019492] Call Trace: [230469.032041] preparetowait+0x8a/0xb0 [230469.044363] ? bchbtreekeysfree+0x6c/0xc0 [escache] [230469.056533] mcacannibalizelock+0x72/0x90 [escache] [230469.068788] mcaalloc+0x2ae/0x450 [escache] [230469.080790] bchbtreenodeget+0x136/0x2d0 [escache] [230469.092681] bchbtreecheckthread+0x1e1/0x260 [escache] [230469.104382] ? finishwait+0x80/0x80 [230469.115884] ? bchbtreecheckrecurse+0x1a0/0x1a0 [escache] [230469.127259] kthread+0x112/0x130 [230469.138448] ? kthreadflushworkfn+0x10/0x10 [230469.149477] retfrom_fork+0x35/0x40

bchbtreecheckthread() and bchdirtyinitthread() may call mcacannibalize() to cannibalize other cached btree nodes. Only one thread can do it at a time, so the op of other threads will be added to the btreecache_wait list.

We must call finishwait() to remove op from btreecachewait before free it's memory address. Otherwise, the list will be damaged. Also should call bchcannibalizeunlock() to release the btreecachealloclock and wake_up other waiters.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54293.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
8e7102273f597dbb38af43da874f8c123f8e6dbe
Fixed
bcb295778afda4f2feb0d3c0289a53fd43d5a3a6
Fixed
cbdd5b3322f7bbe6454c97cac994757f1192c07b
Fixed
25ec4779d0fb3ed9cac1e4d9e0e4261b4a12f6ed
Fixed
2882a4c4f0c90e99f37dbd8db369b9982fd613e7
Fixed
f0854489fc07d2456f7cc71a63f4faf9c716ffbe

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.7.0
Fixed
5.10.188
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.121
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.39
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.4

Database specific

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