md: raid1: fix potential OOB in raid1_remove_disk() (Linux Linux)

CVE-2023-53722
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

Description

In the Linux kernel, the following vulnerability has been resolved: md: raid1: fix potential OOB in raid1_remove_disk() If rddev->raid_disk is greater than mddev->raid_disks, there will be an out-of-bounds in raid1_remove_disk(). We have already found similar reports as follows: 1) commit d17f744e883b ("md-raid10: fix KASAN warning") 2) commit 1ebc2cec0b7d ("dm raid: fix KASAN warning in raid5_remove_disk") Fix this bug by checking whether the "number" variable is valid.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected b8321b68d1445f308324517e45fb0a5c2b48e271 < beedf40f73939f248c81802eda08a2a8148ea13e ; affected b8321b68d1445f308324517e45fb0a5c2b48e271 < 91fbd4e75cb573f44d2619a9dc2f9ba927040760 ; affected b8321b68d1445f308324517e45fb0a5c2b48e271 < 25a68f2286be56fb3a6f9fa0e269c04b5e6c6e24 ; affected b8321b68d1445f308324517e45fb0a5c2b48e271 < 7993cfc041481a3a9cd4a3858088fc846b8ccaf7 ; affected b8321b68d1445f308324517e45fb0a5c2b48e271 < 4f96c0665f9f4cf70130c9757750dc43dc679c82 ; affected b8321b68d1445f308324517e45fb0a5c2b48e271 < 4f7d853b4590fc20e90dd50e346c02811a8c5b08
Linux · Linuxaffected 3.3 ; unaffected 0 < 3.3 ; unaffected 4.14.326 ≤ 4.14.* ; unaffected 4.19.295 ≤ 4.19.* ; unaffected 5.4.257 ≤ 5.4.* ; unaffected 5.10.197 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD