CVE-2024-49936
JSON

8.8high

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

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelbefore 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.3NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/xen-netback: evitar UAF en xenvif_flush_hash() Durante la llamada de iteración list_for_each_entry_rcu de xenvif_flush_hash, kfree_rcu no existe dentro de la sección crítica de lectura de rcu, por lo que si se llama a kfree_rcu cuando finaliza el período de gracia de rcu durante la iteración, se produce UAF al acceder a head->next después de que la entrada se libera. Por lo tanto, para resolver esto, debe cambiarlo a list_for_each_entry_safe.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49936 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-49936 changed 2026-08-04Public domain