{"id":"CVE-2024-26775","aliases":["CVE-2024-26775"],"related":[],"kind":"vulnerability","state":"published","title":"aoe: avoid potential deadlock at set_capacity","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naoe: avoid potential deadlock at set_capacity\n\nMove set_capacity() outside of the section procected by (&d->lock).\nTo avoid possible interrupt unsafe locking scenario:\n\n        CPU0                    CPU1\n        ----                    ----\n[1] lock(&bdev->bd_size_lock);\n                                local_irq_disable();\n                            [2] lock(&d->lock);\n                            [3] lock(&bdev->bd_size_lock);\n   <Interrupt>\n[4]  lock(&d->lock);\n\n  *** DEADLOCK ***\n\nWhere [1](&bdev->bd_size_lock) hold by zram_add()->set_capacity().\n[2]lock(&d->lock) hold by aoeblk_gdalloc(). And aoeblk_gdalloc()\nis trying to acquire [3](&bdev->bd_size_lock) at set_capacity() call.\nIn this situation an attempt to acquire [4]lock(&d->lock) from\naoecmd_cfg_rsp() will lead to deadlock.\n\nSo the simplest solution is breaking lock dependency\n[2](&d->lock) -> [3](&bdev->bd_size_lock) by moving set_capacity()\noutside.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\naoe: avoid potential deadlock at set_capacity\n\nMove set_capacity() outside of the section procected by (&d->lock).\nTo avoid possible interrupt unsafe locking scenario:\n\n        CPU0                    CPU1\n        ----                    ----\n[1] lock(&bdev->bd_size_lock);\n                                local_irq_disable();\n                            [2] lock(&d->lock);\n                            [3] lock(&bdev->bd_size_lock);\n   <Interrupt>\n[4]  lock(&d->lock);\n\n  *** DEADLOCK ***\n\nWhere [1](&bdev->bd_size_lock) hold by zram_add()->set_capacity().\n[2]lock(&d->lock) hold by aoeblk_gdalloc(). And aoeblk_gdalloc()\nis trying to acquire [3](&bdev->bd_size_lock) at set_capacity() call.\nIn this situation an attempt to acquire [4]lock(&d->lock) from\naoecmd_cfg_rsp() will lead to deadlock.\n\nSo the simplest solution is breaking lock dependency\n[2](&d->lock) -> [3](&bdev->bd_size_lock) by moving set_capacity()\noutside.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: aoe: evita un posible punto muerto en set_capacity Mueve set_capacity() fuera de la sección procesada por (&amp;d-&gt;lock). Para evitar una posible interrupción en un escenario de bloqueo inseguro: CPU0 CPU1 ---- ---- [1] lock(&amp;bdev-&gt;bd_size_lock); local_irq_disable(); [2] bloquear(&amp;d-&gt;bloquear); [3] bloquear(&amp;bdev-&gt;bd_size_lock);  [4] bloqueo(&amp;d-&gt;bloqueo); *** DEADLOCK *** Donde [1](&amp;bdev-&gt;bd_size_lock) mantenido por zram_add()-&gt;set_capacity(). [2]bloqueo(&amp;d-&gt;bloqueo) retenido por aoeblk_gdalloc(). Y aoeblk_gdalloc() está intentando adquirir [3](&amp;bdev-&gt;bd_size_lock) en la llamada set_capacity(). En esta situación, un intento de adquirir [4]lock(&amp;d-&gt;lock) de aoecmd_cfg_rsp() provocará un punto muerto. Entonces, la solución más simple es romper la dependencia del bloqueo [2](&amp;d-&gt;lock) -&gt; [3](&amp;bdev-&gt;bd_size_lock) moviendo set_capacity() afuera.","source":"nvd"}],"published":"2024-04-03T17:01:01.299Z","modified":"2026-06-17T07:18:18.850Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"a782483cc1f875355690625d8253a232f2581418","fixed":"2499fa286fb010ceb289950050199f33c26667b9","status":"affected"},{"type":"git","introduced":"a782483cc1f875355690625d8253a232f2581418","fixed":"2d623c94fbba3554f4446ba6f3c764994e8b0d26","status":"affected"},{"type":"git","introduced":"a782483cc1f875355690625d8253a232f2581418","fixed":"673629018ba04906899dcb631beec34d871f709c","status":"affected"},{"type":"git","introduced":"a782483cc1f875355690625d8253a232f2581418","fixed":"19a77b27163820f793b4d022979ffdca8f659b77","status":"affected"},{"type":"git","introduced":"a782483cc1f875355690625d8253a232f2581418","fixed":"e169bd4fb2b36c4b2bee63c35c740c85daeb2e86","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.189","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.80","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.19","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.7","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.1.80"},{"status":"affected","introduced":"6.2","fixed":"6.6.19"},{"status":"affected","introduced":"6.7","fixed":"6.7.7"},{"status":"affected","version":"6.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2499fa286fb010ceb289950050199f33c26667b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d623c94fbba3554f4446ba6f3c764994e8b0d26","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/673629018ba04906899dcb631beec34d871f709c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19a77b27163820f793b4d022979ffdca8f659b77","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e169bd4fb2b36c4b2bee63c35c740c85daeb2e86","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:51:17.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26775","url":"https://www.cve.org/CVERecord?id=CVE-2024-26775","licence":"CVE Terms of Use","modified":"2026-05-11T20:03:56.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26775","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26775","licence":"Public domain","modified":"2026-06-17T07:18:18.850Z"}],"updatedAt":"2026-11-25T22:58:38.698Z","epss":{"score":0.00183,"percentile":0.08211,"date":"2026-12-01T12:00:22.000Z"}}