CVE-2023-53299 md/raid10: fix leak of 'r10bio->remaining' for recovery

Medium 5.5 Published Updated

A resource leak in the Linux kernel RAID10 recovery path can cause an I/O hang, leading to denial of service.

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-53299?

CVE-2023-53299 is a medium-severity denial of service vulnerability in Linux kernel, published on 16 Sep 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:

md/raid10: fix leak of 'r10bio->remaining' for recovery

raid10_sync_request() will add 'r10bio->remaining' for both rdev and replacement rdev. However, if the read io fails, recovery_request_write() returns without issuing the write io, in this case, end_sync_request() is only called once and 'remaining' is leaked, cause an io hang.

Fix the problem by decreasing 'remaining' according to if 'bio' and 'repl_bio' is valid.

Weakness: CWE-401

Which versions are affected by CVE-2023-53299?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53299?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-53299 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53299, DEBIAN-CVE-2023-53299, GHSA-hhmc-3cvv-pmfw, UBUNTU-CVE-2023-53299.

Is CVE-2023-53299 in your software?

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

Check your SBOMs for free