CVE-2023-53681 bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel bcache module can cause a system crash, requiring a kernel patch.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-53681?

CVE-2023-53681 is a medium-severity vulnerability in Linux kernel, published on 7 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent

In some specific situations, the return value of __bch_btree_node_alloc may be NULL. This may lead to a potential NULL pointer dereference in caller function like a calling chain : btree_split->bch_btree_node_alloc->__bch_btree_node_alloc.

Fix it by initializing the return value in __bch_btree_node_alloc.

Weakness: CWE-476

Which versions are affected by CVE-2023-53681?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53681?

Apply the vendor's patch.

Is CVE-2023-53681 being exploited?

There is no known exploitation of CVE-2023-53681 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53681, DEBIAN-CVE-2023-53681, GHSA-7h48-rq2g-79x4, ROOT-OS-UBUNTU-2204-CVE-2023-53681, ROOT-OS-UBUNTU-2404-CVE-2023-53681, UBUNTU-CVE-2023-53681.

Is CVE-2023-53681 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free