# CVE-2024-26775: aoe: avoid potential deadlock at set_capacity

- 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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-04-03T17:01:01.299Z
- Modified: 2026-06-17T07:18:18.850Z
- 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:

aoe: avoid potential deadlock at set_capacity

Move set_capacity() outside of the section procected by (&d->lock).
To avoid possible interrupt unsafe locking scenario:

        CPU0                    CPU1
        ----                    ----
[1] lock(&bdev->bd_size_lock);
                                local_irq_disable();
                            [2] lock(&d->lock);
                            [3] lock(&bdev->bd_size_lock);
   <Interrupt>
[4]  lock(&d->lock);

  *** DEADLOCK ***

Where [1](&bdev->bd_size_lock) hold by zram_add()->set_capacity().
[2]lock(&d->lock) hold by aoeblk_gdalloc(). And aoeblk_gdalloc()
is trying to acquire [3](&bdev->bd_size_lock) at set_capacity() call.
In this situation an attempt to acquire [4]lock(&d->lock) from
aoecmd_cfg_rsp() will lead to deadlock.

So the simplest solution is breaking lock dependency
[2](&d->lock) -> [3](&bdev->bd_size_lock) by moving set_capacity()
outside.

(As written by CVE List.)

## Affected

- Linux Linux: from a782483cc1f875355690625d8253a232f2581418 before 2499fa286fb010ceb289950050199f33c26667b9; from a782483cc1f875355690625d8253a232f2581418 before 2d623c94fbba3554f4446ba6f3c764994e8b0d26; from a782483cc1f875355690625d8253a232f2581418 before 673629018ba04906899dcb631beec34d871f709c; from a782483cc1f875355690625d8253a232f2581418 before 19a77b27163820f793b4d022979ffdca8f659b77; from a782483cc1f875355690625d8253a232f2581418 before e169bd4fb2b36c4b2bee63c35c740c85daeb2e86; 5.11 (not affected: before 5.11; from 5.15.189 up to 5.15.*; from 6.1.80 up to 6.1.*; from 6.6.19 up to 6.6.*; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 6.1.80; from 6.2 before 6.6.19; from 6.7 before 6.7.7; 6.8

## References

- <https://git.kernel.org/stable/c/2499fa286fb010ceb289950050199f33c26667b9>
- <https://git.kernel.org/stable/c/2d623c94fbba3554f4446ba6f3c764994e8b0d26> (patch)
- <https://git.kernel.org/stable/c/673629018ba04906899dcb631beec34d871f709c> (patch)
- <https://git.kernel.org/stable/c/19a77b27163820f793b4d022979ffdca8f659b77> (patch)
- <https://git.kernel.org/stable/c/e169bd4fb2b36c4b2bee63c35c740c85daeb2e86> (patch)

## Sources

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

---

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