CVE-2024-27066: virtio: packed: fix unmap leak for indirect desc table

Published May 1, 2024
·
Updated

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

virtio: packed: fix unmap leak for indirect desc table

When usedmaapi and premapped are true, then the dounmap is false.

Because the dounmap is false, vringunmapextrapacked is not called by detachbufpacked.

if (unlikely(vq->dounmap)) { curr = id; for (i = 0; i < state->num; i++) { vringunmapextrapacked(vq, &vq->packed.descextra[curr]); curr = vq->packed.descextra[curr].next; } }

So the indirect desc table is not unmapped. This causes the unmap leak.

So here, we check vq->usedmaapi instead. Synchronously, dma info is updated based on usedmaapi judgment

This bug does not occur, because no driver use the premapped with indirect.

Affected Software

4 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
Linux Linux kernel>=6.6<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1

Event History

May 1, 2024
CVE Published
via MITRE·01:04 PM
Data Sourced
via MITRE·01:04 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via NVD·01:15 PM
RemedySeverityWeaknessAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:13 AM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·05:29 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27066?

CVE-2024-27066 has a medium severity rating due to potential information leakage and resource management issues in the Linux kernel.

2

How do I fix CVE-2024-27066?

To fix CVE-2024-27066, update the Linux kernel to the patched versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.

3

Which versions of Linux are affected by CVE-2024-27066?

CVE-2024-27066 affects various versions of the Linux kernel prior to the mentioned patched versions.

4

What impact does CVE-2024-27066 have on system performance?

CVE-2024-27066 could potentially impact system resource management, leading to decreased performance under specific configurations.

5

Is CVE-2024-27066 a remote or local vulnerability?

CVE-2024-27066 is primarily a local vulnerability, requiring access to the affected system to exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203