CVE-2024-42069: net: mana: Fix possible double free in error handling path

Published Jul 29, 2024
·
Updated

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

net: mana: Fix possible double free in error handling path

When auxiliarydeviceadd() returns error and then calls auxiliarydeviceuninit(), callback function adevrelease calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.

Affected Software

7 affected componentsFixes available
Linux Linux kernel<6.2
Linux Linux kernel>=6.3<6.6.37
Linux Linux kernel>=6.7<6.9.8
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft azl3 kernel 6.6.35.1-5
Microsoft azl3 kernel 6.6.43.1-7

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-1Fixed in 6.12.27-1
  2. Upgrade

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

    Fixed in 6.1.129-1~deb11u1
  3. Configuration

    In the error handling path, set 'madev' to NULL so that adev_release does not free the same memory twice (avoid calling kfree(madev) again after auxiliary_device_add() error -> auxiliary_device_uninit() -> adev_release).

    Linux kernel net: mana madev pointer = NULL

Event History

Jul 29, 2024
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
May 1, 2025
Data Sourced
via Ubuntu·12:33 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-42069?

CVE-2024-42069 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-42069?

You can fix CVE-2024-42069 by updating to the patched versions of the Linux kernel, specifically 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.

3

Which versions of the Linux kernel are affected by CVE-2024-42069?

CVE-2024-42069 affects Linux kernel versions prior to 6.3 and versions between 6.7 and 6.9.8.

4

What component of the Linux kernel is impacted by CVE-2024-42069?

CVE-2024-42069 impacts the net subsystem, specifically related to 'mana' and error handling in auxiliary devices.

5

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

CVE-2024-42069 is primarily a local vulnerability that could be exploited by users with sufficient privileges on the affected system.

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