VYPR
Unrated severityNVD Advisory· Published Jul 2, 2021· Updated Aug 4, 2024

CVE-2021-36148

CVE-2021-36148

Description

An issue was discovered in ACRN before 2.5. dmar_free_irte in hypervisor/arch/x86/vtd.c allows an irte_alloc_bitmap buffer overflow.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

ACRN hypervisor before 2.5 has a buffer overflow in dmar_free_irte because the irte_alloc_bitmap index is not validated.

Vulnerability

CVE-2021-36148 is a buffer overflow in the ACRN hypervisor's dmar_free_irte function, located in hypervisor/arch/x86/vtd.c. The function is used when freeing interrupt remapping table entries for PCI devices and IOAPIC interrupts. In versions before 2.5, dmar_free_irte did not validate that the index parameter (the interrupt remapping table entry index) is less than CONFIG_MAX_IR_ENTRIES. The fix adds a boundary check (index < CONFIG_MAX_IR_ENTRIES) before accessing the interrupt remapping table (IRTE) bitmap. The vulnerability was introduced because a prior change removed the index validation from the caller ptirq_free_irte, leaving dmar_free_irte with an unchecked index [1].

Exploitation

An attacker with the ability to control or influence the irte_idx field of a ptirq_remapping_info structure (for example, via crafted PCI device assignment or IOAPIC manipulation inside a VM) could supply an index value that exceeds CONFIG_MAX_IR_ENTRIES. This permits out-of-bounds writes to the irte_alloc_bitmap and possibly the ir_table array in kernel memory. The attacker would need some level of control over interrupt remapping configuration, likely requiring a compromised or malicious virtual machine or physical access to a management interface [1].

Impact

Successful exploitation of this buffer overflow can lead to memory corruption, potentially allowing an attacker to escalate privileges from a VM to the hypervisor level or cause a denial of service (system crash). The overflow could overwrite adjacent data structures in the hypervisor's address space, potentially enabling arbitrary code execution at the highest privilege level (VMX root mode) [1].

Mitigation

The issue is fixed in ACRN version 2.5 and later. The commit [1] (25c0e3817eb332660dd63d1d4522e63dcc94e79a) adds the missing boundary check. Users should update to ACRN 2.5 or apply the patch. No workaround is documented. The CVE is not listed in CISA's Known Exploited Vulnerabilities catalog as of the publication date [1].

AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2
  • ACRN/ACRNdescription
  • ACRN/ACRNllm-fuzzy
    Range: <2.5

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.