CVE-2023-53357 md/raid10: check slab-out-of-bounds in md_bitmap_get_counter

High 7.1 Published Updated

A slab-out-of-bounds write in the Linux kernel RAID10 bitmap handling allows attackers to cause denial of service or potentially execute code.

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

CVE-2023-53357 is a high-severity memory corruption vulnerability in Linux kernel, published on 17 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: check slab-out-of-bounds in md_bitmap_get_counter

If we write a large number to md/bitmap_set_bits, md_bitmap_checkpage() will return -EINVAL because 'page >= bitmap->pages', but the return value was not checked immediately in md_bitmap_get_counter() in order to set *blocks value and slab-out-of-bounds occurs.

Move check of 'page >= bitmap->pages' to md_bitmap_get_counter() and return directly if true.

Weakness: CWE-125

Which versions are affected by CVE-2023-53357?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53357?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-53357 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53357, DEBIAN-CVE-2023-53357, GHSA-vhg5-4g62-qm2x, UBUNTU-CVE-2023-53357.

Is CVE-2023-53357 in your software?

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

Check your SBOMs for free