# CVE-2024-38385: genirq/irqdesc: Prevent use-after-free in irq_find_at_or_after()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.32%, higher than 17% of CVEs (2026-11-30)
- Published: 2024-06-25T14:22:37.560Z
- Modified: 2026-08-05T11:32:35.260Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

genirq/irqdesc: Prevent use-after-free in irq_find_at_or_after()

irq_find_at_or_after() dereferences the interrupt descriptor which is
returned by mt_find() while neither holding sparse_irq_lock nor RCU read
lock, which means the descriptor can be freed between mt_find() and the
dereference:

    CPU0                            CPU1
    desc = mt_find()
                                    delayed_free_desc(desc)
    irq_desc_get_irq(desc)

The use-after-free is reported by KASAN:

    Call trace:
     irq_get_next_irq+0x58/0x84
     show_stat+0x638/0x824
     seq_read_iter+0x158/0x4ec
     proc_reg_read_iter+0x94/0x12c
     vfs_read+0x1e0/0x2c8

    Freed by task 4471:
     slab_free_freelist_hook+0x174/0x1e0
     __kmem_cache_free+0xa4/0x1dc
     kfree+0x64/0x128
     irq_kobj_release+0x28/0x3c
     kobject_put+0xcc/0x1e0
     delayed_free_desc+0x14/0x2c
     rcu_do_batch+0x214/0x720

Guard the access with a RCU read lock section.

(As written by CVE List.)

## Affected

- Linux Linux: from 721255b9826bd11c7a38b585905fc2dd0fb94e52 before 1c7891812d85500ae2ca4051fa5683fcf29930d8; from 721255b9826bd11c7a38b585905fc2dd0fb94e52 before d084aa022f84319f8079e30882cbcbc026af9f21; from 721255b9826bd11c7a38b585905fc2dd0fb94e52 before b84a8aba806261d2f759ccedf4a2a6a80a5e55ba; 6.5 (not affected: before 6.5; from 6.6.34 up to 6.6.*; from 6.9.5 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.5 before 6.6.34; from 6.7 before 6.9.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1c7891812d85500ae2ca4051fa5683fcf29930d8> (patch)
- <https://git.kernel.org/stable/c/d084aa022f84319f8079e30882cbcbc026af9f21> (patch)
- <https://git.kernel.org/stable/c/b84a8aba806261d2f759ccedf4a2a6a80a5e55ba> (patch)

## Sources

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

---

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