All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-42069

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix possible double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL.

A flaw was found in the Linux kernel's Microsoft Azure Network Adapter (MANA) driver. A local user could exploit this vulnerability to cause a Denial of Service (DoS) or kernel memory corruption. This issue occurs because an improper error-handling path releases the same memory allocation twice when auxiliary device initialization fails.