# CVE-2024-26899: block: fix deadlock between bd_link_disk_holder and partition scan

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/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: 2024-04-17T10:27:49.089Z
- Modified: 2026-06-17T07:18:38.573Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: fix deadlock between bd_link_disk_holder and partition scan

'open_mutex' of gendisk is used to protect open/close block devices. But
in bd_link_disk_holder(), it is used to protect the creation of symlink
between holding disk and slave bdev, which introduces some issues.

When bd_link_disk_holder() is called, the driver is usually in the process
of initialization/modification and may suspend submitting io. At this
time, any io hold 'open_mutex', such as scanning partitions, can cause
deadlocks. For example, in raid:

T1                              T2
bdev_open_by_dev
 lock open_mutex [1]
 ...
  efi_partition
  ...
   md_submit_bio
				md_ioctl mddev_syspend
				  -> suspend all io
				 md_add_new_disk
				  bind_rdev_to_array
				   bd_link_disk_holder
				    try lock open_mutex [2]
    md_handle_request
     -> wait mddev_resume

T1 scan partition, T2 add a new device to raid. T1 waits for T2 to resume
mddev, but T2 waits for open_mutex held by T1. Deadlock occurs.

Fix it by introducing a local mutex 'blk_holder_mutex' to replace
'open_mutex'.

(As written by CVE List.)

## Affected

- Linux Linux: from 1b0a2d950ee2a54aa04fb31ead32144be0bbf690 before 1e5c5b0abaee7b62a10b9707a62083b71ad21f62; from 1b0a2d950ee2a54aa04fb31ead32144be0bbf690 before 5a87c1f7993bc8ac358a3766bac5dc7126e01e98; from 1b0a2d950ee2a54aa04fb31ead32144be0bbf690 before 03f12122b20b6e6028e9ed69030a49f9cffcbb75; 6.7 (not affected: before 6.7; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/1e5c5b0abaee7b62a10b9707a62083b71ad21f62> (patch)
- <https://git.kernel.org/stable/c/5a87c1f7993bc8ac358a3766bac5dc7126e01e98> (patch)
- <https://git.kernel.org/stable/c/03f12122b20b6e6028e9ed69030a49f9cffcbb75> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-26899 · Whole record: https://cve.day/CVE-2024-26899.json · Rebuilt by cve.day 2026-11-25T22:58:39.389Z
