CVE-2024-41096

Updated: 2025-11-19 05:10:49.432672

Description:

In the Linux kernel, the following vulnerability has been resolved: PCI/MSI: Fix UAF in msi_capability_init KFENCE reports the following UAF: BUG: KFENCE: use-after-free read in __pci_enable_msi_range+0x2c0/0x488 Use-after-free read at 0x0000000024629571 (in kfence-#12): __pci_enable_msi_range+0x2c0/0x488 pci_alloc_irq_vectors_affinity+0xec/0x14c pci_alloc_irq_vectors+0x18/0x28 kfence-#12: 0x0000000008614900-0x00000000e06c228d, size=104, cache=kmalloc-128 allocated by task 81 on cpu 7 at 10.808142s: __kmem_cache_alloc_node+0x1f0/0x2bc kmalloc_trace+0x44/0x138 msi_alloc_desc+0x3c/0x9c msi_domain_insert_msi_desc+0x30/0x78 msi_setup_msi_desc+0x13c/0x184 __pci_enable_msi_range+0x258/0x488 pci_alloc_irq_vectors_affinity+0xec/0x14c pci_alloc_irq_vectors+0x18/0x28 freed by task 81 on cpu 7 at 10.811436s: msi_domain_free_descs+0xd4/0x10c msi_domain_free_locked.part.0+0xc0/0x1d8 msi_domain_alloc_irqs_all_locked+0xb4/0xbc pci_msi_setup_msi_irqs+0x30/0x4c __pci_enable_msi_range+0x2a8/0x488 pci_alloc_irq_vectors_affinity+0xec/0x14c pci_alloc_irq_vectors+0x18/0x28 Descriptor allocation done in: __pci_enable_msi_range msi_capability_init msi_setup_msi_desc msi_insert_msi_desc msi_domain_insert_msi_desc msi_alloc_desc ... Freed in case of failure in __msi_domain_alloc_locked() __pci_enable_msi_range msi_capability_init pci_msi_setup_msi_irqs msi_domain_alloc_irqs_all_locked msi_domain_alloc_locked __msi_domain_alloc_locked => fails msi_domain_free_locked ... That failure propagates back to pci_msi_setup_msi_irqs() in msi_capability_init() which accesses the descriptor for unmasking in the error exit path. Cure it by copying the descriptor and using the copy for the error exit path unmask operation. [ tglx: Massaged change log ]


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0.0
CVSS Version 3.x HIGH 7.8

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 7.8 HIGH Released CLSA-2025:1743193221 2024-10-21 17:33:51
CentOS 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-09-11 17:22:56
CentOS 7 ELS kernel 3.10.0 7.8 HIGH Not Vulnerable 2024-09-11 17:22:56
CentOS 8.4 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2024:1727690947 2024-09-30 10:51:55
CentOS 8.5 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2024:1727690025 2024-09-30 10:51:56
CentOS Stream 8 ELS kernel 4.18.0 7.8 HIGH Released CLSA-2024:1727815919 2024-10-01 17:34:37
CloudLinux 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-09-11 17:22:56
CloudLinux 7 ELS kernel 3.10.0 7.8 HIGH Not Vulnerable 2024-09-11 17:22:56
Oracle Linux 6 ELS kernel 2.6.32 7.8 HIGH Not Vulnerable 2024-09-11 17:22:56