CVE-2023-53357

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

State
Published
Severity
7.1 High
Published
Sep 17, 2025
Updated
May 11, 2026
Reserved
Sep 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before 374fb914304d9b500721007f3837ea8f1f9a2418Affected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before b0b971fe7d61411ede63c3291764dbde1577ef2cAffected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before 39fa14e824acfd470db4f42c354297456bd82b53Affected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before a134dd582c0d5b6068efa308bd485cf1d00b3f65Affected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before be1a3ec63a840cc9e59a033acf154f56255699a1Affected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before 152bb26796ff054af50b2ee1b3ca56e364e4f61bAffected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before bea301c046110bf421a3ce153fb868cb8d618e90Affected
  • ef4256733506f2459a0c436b62267d22a3f0cec6 to before 301867b1c16805aebbc306aafa6ecdc68b73c7e5Affected
LinuxLinux
  • 2.6.36Affected
  • before 2.6.36Not affected
  • 4.19.291 through 4.19.*Not affected
  • 5.4.251 through 5.4.*Not affected
  • 5.10.188 through 5.10.*Not affected
  • 5.15.121 through 5.15.*Not affected
  • 6.1.39 through 6.1.*Not affected
  • 6.3.13 through 6.3.*Not affected
  • 6.4.4 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.