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

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-09-17T14:56:47.171Z
- Modified: 2026-06-17T06:44:59.547Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ef4256733506f2459a0c436b62267d22a3f0cec6 before 374fb914304d9b500721007f3837ea8f1f9a2418; from ef4256733506f2459a0c436b62267d22a3f0cec6 before b0b971fe7d61411ede63c3291764dbde1577ef2c; from ef4256733506f2459a0c436b62267d22a3f0cec6 before 39fa14e824acfd470db4f42c354297456bd82b53; from ef4256733506f2459a0c436b62267d22a3f0cec6 before a134dd582c0d5b6068efa308bd485cf1d00b3f65; from ef4256733506f2459a0c436b62267d22a3f0cec6 before be1a3ec63a840cc9e59a033acf154f56255699a1; from ef4256733506f2459a0c436b62267d22a3f0cec6 before 152bb26796ff054af50b2ee1b3ca56e364e4f61b; from ef4256733506f2459a0c436b62267d22a3f0cec6 before bea301c046110bf421a3ce153fb868cb8d618e90; from ef4256733506f2459a0c436b62267d22a3f0cec6 before 301867b1c16805aebbc306aafa6ecdc68b73c7e5; 2.6.36 (not affected: before 2.6.36; from 4.19.291 up to 4.19.*; from 5.4.251 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 2.6.36 before 4.19.291; from 4.20 before 5.4.251; from 5.5 before 5.10.188; from 5.11 before 5.15.121; from 5.16 before 6.1.39; from 6.2 before 6.3.13; from 6.4 before 6.4.4

## Every score

- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/374fb914304d9b500721007f3837ea8f1f9a2418> (patch)
- <https://git.kernel.org/stable/c/b0b971fe7d61411ede63c3291764dbde1577ef2c> (patch)
- <https://git.kernel.org/stable/c/39fa14e824acfd470db4f42c354297456bd82b53> (patch)
- <https://git.kernel.org/stable/c/a134dd582c0d5b6068efa308bd485cf1d00b3f65> (patch)
- <https://git.kernel.org/stable/c/be1a3ec63a840cc9e59a033acf154f56255699a1> (patch)
- <https://git.kernel.org/stable/c/152bb26796ff054af50b2ee1b3ca56e364e4f61b> (patch)
- <https://git.kernel.org/stable/c/bea301c046110bf421a3ce153fb868cb8d618e90> (patch)
- <https://git.kernel.org/stable/c/301867b1c16805aebbc306aafa6ecdc68b73c7e5> (patch)

## Sources

- CVE List: [CVE-2023-53357](https://www.cve.org/CVERecord?id=CVE-2023-53357), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53357](https://nvd.nist.gov/vuln/detail/CVE-2023-53357), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53357 · Whole record: https://cve.day/CVE-2023-53357.json · Rebuilt by cve.day 2026-11-25T22:58:34.848Z
