# CVE-2023-53357: md/raid10: check slab-out-of-bounds in md\_bitmap\_get\_counter

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-17 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2023-53357, DEBIAN-CVE-2023-53357
- Record: https://cvemate.com/vulnerability/CVE-2023-53357 · JSON: https://cvemate.com/vulnerability/CVE-2023-53357/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.209%, percentile 11.651%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 127)

- debian linux (Debian): \< 6.1.52-1 \| \< 6.4.4-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-166.183 \| \< 5.15.0-86.96
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1113.123 \| \< 5.15.0-1047.52
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1047.52~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1113.123~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1113.123+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1119.126 \| \< 5.15.0-1049.56
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/374fb914304d9b500721007f3837ea8f1f9a2418>
- <https://git.kernel.org/stable/c/b0b971fe7d61411ede63c3291764dbde1577ef2c>
- <https://git.kernel.org/stable/c/39fa14e824acfd470db4f42c354297456bd82b53>
- <https://git.kernel.org/stable/c/a134dd582c0d5b6068efa308bd485cf1d00b3f65>
- <https://git.kernel.org/stable/c/be1a3ec63a840cc9e59a033acf154f56255699a1>
- <https://git.kernel.org/stable/c/152bb26796ff054af50b2ee1b3ca56e364e4f61b>
- <https://git.kernel.org/stable/c/bea301c046110bf421a3ce153fb868cb8d618e90>
- <https://git.kernel.org/stable/c/301867b1c16805aebbc306aafa6ecdc68b73c7e5>
- <https://ubuntu.com/security/CVE-2023-53357>
- <https://www.cve.org/CVERecord?id=CVE-2023-53357>
- <https://git.kernel.org/linus/301867b1c16805aebbc306aafa6ecdc68b73c7e5>
- <https://security-tracker.debian.org/tracker/CVE-2023-53357>

---

Data as of 2026-12-05T03:09:26.357Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
