CVE-2024-46762

xen: privcmd: Fix possible access to a freed kirqfd instance

State
Published
Severity
7.8 High
Published
Sep 18, 2024
Updated
Aug 5, 2026
Reserved
Sep 11, 2024

Read the record on cve.org

Description

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

xen: privcmd: Fix possible access to a freed kirqfd instance

Nothing prevents simultaneous ioctl calls to privcmd_irqfd_assign() and privcmd_irqfd_deassign(). If that happens, it is possible that a kirqfd created and added to the irqfds_list by privcmd_irqfd_assign() may get removed by another thread executing privcmd_irqfd_deassign(), while the former is still using it after dropping the locks.

This can lead to a situation where an already freed kirqfd instance may be accessed and cause kernel oops.

Use SRCU locking to prevent the same, as is done for the KVM implementation for irqfds.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f8941e6c4c712948663ec5d7bbb546f1a0f4e3f6 to before e997b357b13a7d95de31681fc54fcc34235fa527Affected
  • f8941e6c4c712948663ec5d7bbb546f1a0f4e3f6 to before 112fd2f02b308564724b8e81006c254d20945c4bAffected
  • f8941e6c4c712948663ec5d7bbb546f1a0f4e3f6 to before 611ff1b1ae989a7bcce3e2a8e132ee30e968c557Affected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.51 through 6.6.*Not affected
  • 6.10.10 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.