md: raid1: fix potential OOB in raid1_remove_disk()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.326, 4.19.295, 5.10.197, 5.15.133, 5.4.257, 6.1.55, 6.5.5
- CVEs
- CVE-2023-53722
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:48 UTC · Revision 1
Source evidence
md: raid1: fix potential OOB in raid1_remove_disk()
core-osv · Original sourcePublished 22 Oct 2025, 13:23 UTC
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.
osv:CVE-2023-53722
Kernel
Fixed versions: 4.14.326, 4.19.295, 5.4.257, 5.10.197, 5.15.133, 6.1.55, 6.5.5
Complete source record
{
"id": "2ee3092c78e9963ccfcc67e618ac2d2e32850a1d1fc6ad771368aebf3c6b4718",
"url": "https://osv.dev/vulnerability/CVE-2023-53722",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "md: raid1: fix potential OOB in raid1_remove_disk()",
"summary": "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.",
"evidence": "osv:CVE-2023-53722",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.326",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.295",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.257",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.197",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.133",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.55",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53722",
"aliases": [
"CVE-2023-53722"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b8321b68d1445f308324517e45fb0a5c2b48e271"
},
{
"fixed": "beedf40f73939f248c81802eda08a2a8148ea13e"
},
{
"fixed": "91fbd4e75cb573f44d2619a9dc2f9ba927040760"
},
{
"fixed": "25a68f2286be56fb3a6f9fa0e269c04b5e6c6e24"
},
{
"fixed": "7993cfc041481a3a9cd4a3858088fc846b8ccaf7"
},
{
"fixed": "4f96c0665f9f4cf70130c9757750dc43dc679c82"
},
{
"fixed": "4f7d853b4590fc20e90dd50e346c02811a8c5b08"
},
{
"fixed": "4bdb92eaf645e312975357adc3c4e9523b6e67f1"
},
{
"fixed": "8b0472b50bcf0f19a5119b00a53b63579c8e1e4d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53722.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.3.0"
},
{
"fixed": "4.14.326"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.295"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.257"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.197"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.133"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.5.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53722.json"
}
}
],
"modified": "2026-10-30T02:30:32.843767043Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/25a68f2286be56fb3a6f9fa0e269c04b5e6c6e24",
"https://git.kernel.org/stable/c/4bdb92eaf645e312975357adc3c4e9523b6e67f1",
"https://git.kernel.org/stable/c/4f7d853b4590fc20e90dd50e346c02811a8c5b08",
"https://git.kernel.org/stable/c/4f96c0665f9f4cf70130c9757750dc43dc679c82",
"https://git.kernel.org/stable/c/7993cfc041481a3a9cd4a3858088fc846b8ccaf7",
"https://git.kernel.org/stable/c/8b0472b50bcf0f19a5119b00a53b63579c8e1e4d",
"https://git.kernel.org/stable/c/91fbd4e75cb573f44d2619a9dc2f9ba927040760",
"https://git.kernel.org/stable/c/beedf40f73939f248c81802eda08a2a8148ea13e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53722.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53722",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53722.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53722",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 505422,
"published_at": "2025-10-22T13:23:53.329+00:00"
}