Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-31076— genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline

EPSS 0.01% · P3

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinuxf0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< a40209d355afe4ed6d533507838c9e5cd70a76d8affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< f5f4675960609d8c5ee95f027fbf6ce380f98372affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< 6752dfcfff3ac3e16625ebd3f0ad9630900e7e76affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< 9eeda3e0071a329af1eba15f4e57dc39576bb420affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< e9c96d01d520498b169ce734a8ad1142bef86a30affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< 59f86a2908380d09cdc726461c0fbb8d8579c99faffected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< ebfb16fc057a016abb46a9720a54abf0d4f6abe1affected
f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b< a6c11c0a5235fb144a65e0cb2ffd360ddc1f6c32affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-31076

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline The absence of IRQD_MOVE_PCNTXT prevents immediate effectiveness of interrupt affinity reconfiguration via procfs. Instead, the change is deferred until the next instance of the interrupt being triggered on the original CPU. When the interrupt next triggers on the original CPU, the new affinity is enforced within __irq_move_irq(). A vector is allocated from the new CPU, but the old vector on the original CPU remains and is not immediately reclaimed. Instead, apicd->move_in_progress is flagged, and the reclaiming process is delayed until the next trigger of the interrupt on the new CPU. Upon the subsequent triggering of the interrupt on the new CPU, irq_complete_move() adds a task to the old CPU's vector_cleanup list if it remains online. Subsequently, the timer on the old CPU iterates over its vector_cleanup list, reclaiming old vectors. However, a rare scenario arises if the old CPU is outgoing before the interrupt triggers again on the new CPU. In that case irq_force_complete_move() is not invoked on the outgoing CPU to reclaim the old apicd->prev_vector because the interrupt isn't currently affine to the outgoing CPU, and irq_needs_fixup() returns false. Even though __vector_schedule_cleanup() is later called on the new CPU, it doesn't reclaim apicd->prev_vector; instead, it simply resets both apicd->move_in_progress and apicd->prev_vector to 0. As a result, the vector remains unreclaimed in vector_matrix, leading to a CPU vector leak. To address this issue, move the invocation of irq_force_complete_move() before the irq_needs_fixup() call to reclaim apicd->prev_vector, if the interrupt is currently or used to be affine to the outgoing CPU. Additionally, reclaim the vector in __vector_schedule_cleanup() as well, following a warning message, although theoretically it should never see apicd->move_in_progress with apicd->prev_cpu pointing to an offline CPU.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于genirq/cpuhotplug,x86/vector模块存在问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux f0383c24b4855f6a4b5a358c7b2d2c16e0437e9b ~ a40209d355afe4ed6d533507838c9e5cd70a76d8 -
LinuxLinux 4.13 -

II. Public POCs for CVE-2024-31076

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-31076

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-06-21 · 40 CVEs total

CVE-2024-38636f2fs: multidev: fix to recognize valid zero block address
CVE-2024-38627stm class: Fix a double free in stm_register_device()
CVE-2024-38628usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind.
CVE-2024-38629dmaengine: idxd: Avoid unnecessary destruction of file_ida
CVE-2024-38630watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger
CVE-2024-38631iio: adc: PAC1934: fix accessing out of bounds array index
CVE-2024-38632vfio/pci: fix potential memory leak in vfio_intx_enable()
CVE-2024-38633serial: max3100: Update uart_driver_registered on driver removal
CVE-2024-38634serial: max3100: Lock port->lock when calling uart_handle_cts_change()
CVE-2024-38635soundwire: cadence: fix invalid PDI offset
CVE-2024-38625fs/ntfs3: Check 'folio' pointer for NULL
CVE-2024-38637greybus: lights: check return of get_channel_from_mode
CVE-2024-38659enic: Validate length of nl attributes in enic_set_vf_port
CVE-2024-38662bpf: Allow delete from sockmap/sockhash only if update is allowed
CVE-2024-38780dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
CVE-2024-39277dma-mapping: benchmark: handle NUMA_NO_NODE correctly
CVE-2024-34777dma-mapping: benchmark: fix node id validation
CVE-2024-36288SUNRPC: Fix loop termination condition in gss_free_in_token_pages()
CVE-2024-36477tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer
CVE-2024-36481tracing/probes: fix error check in parse_btf_field()

Showing top 20 of 40 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-31076

No comments yet


Leave a comment