# CVE-2024-49936: net/xen-netback: prevent UAF in xenvif_flush_hash()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:57.066Z
- Modified: 2026-08-05T11:40:33.247Z
- 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:

net/xen-netback: prevent UAF in xenvif_flush_hash()

During the list_for_each_entry_rcu iteration call of xenvif_flush_hash,
kfree_rcu does not exist inside the rcu read critical section, so if
kfree_rcu is called when the rcu grace period ends during the iteration,
UAF occurs when accessing head->next after the entry becomes free.

Therefore, to solve this, you need to change it to list_for_each_entry_safe.

(As written by CVE List.)

## Affected

- Linux Linux: from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before 3c4423b0c4b98213b3438e15061e1d08220e6982; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before a7f0073fcd12ed7de185ef2c0af9d0fa1ddef22c; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before a0465723b8581cad27164c9073fd780904cd22d4; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before efcff6ce7467f01f0753609f420333f3f2ceceda; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before 143edf098b80669d05245b2f2367dd156a83a2c5; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before d408889d4b54f5501e4becc4dbbb9065143fbf4e; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before 54d8639af5568fc41c0e274fc3ec9cf86c59fcbb; from 40d8abdee806d496a60ee607a6d01b1cd7fabaf0 before 0fa5e94a1811d68fbffa0725efe6d4ca62c03d12; 4.7 (not affected: before 4.7; from 5.4.290 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/3c4423b0c4b98213b3438e15061e1d08220e6982>
- <https://git.kernel.org/stable/c/a7f0073fcd12ed7de185ef2c0af9d0fa1ddef22c> (patch)
- <https://git.kernel.org/stable/c/a0465723b8581cad27164c9073fd780904cd22d4> (patch)
- <https://git.kernel.org/stable/c/efcff6ce7467f01f0753609f420333f3f2ceceda> (patch)
- <https://git.kernel.org/stable/c/143edf098b80669d05245b2f2367dd156a83a2c5> (patch)
- <https://git.kernel.org/stable/c/d408889d4b54f5501e4becc4dbbb9065143fbf4e> (patch)
- <https://git.kernel.org/stable/c/54d8639af5568fc41c0e274fc3ec9cf86c59fcbb> (patch)
- <https://git.kernel.org/stable/c/0fa5e94a1811d68fbffa0725efe6d4ca62c03d12> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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