CVE-2026-43056
Awaiting Analysis Awaiting Analysis - Queue
Use-After-Free in Linux Kernel's mana Driver

Publication date: 2026-05-01

Last updated on: 2026-05-03

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: net: mana: fix use-after-free in add_adev() error path If auxiliary_device_add() fails, add_adev() jumps to add_fail and calls auxiliary_device_uninit(adev). The auxiliary device has its release callback set to adev_release(), which frees the containing struct mana_adev. Since adev is embedded in struct mana_adev, the subsequent fall-through to init_fail and access to adev->id may result in a use-after-free. Fix this by saving the allocated auxiliary device id in a local variable before calling auxiliary_device_add(), and use that saved id in the cleanup path after auxiliary_device_uninit().
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-01
Last Modified
2026-05-03
Generated
2026-05-07
AI Q&A
2026-05-01
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a use-after-free issue in the Linux kernel's net subsystem, specifically in the mana driver within the add_adev() function.

When the function auxiliary_device_add() fails, add_adev() jumps to an error handling path where it calls auxiliary_device_uninit() on the auxiliary device.

The auxiliary device's release callback frees the memory of the containing structure (mana_adev). Since the code later tries to access the freed memory (adev->id), this results in a use-after-free vulnerability.

The fix involves saving the auxiliary device id before calling auxiliary_device_add() and using this saved id during cleanup to avoid accessing freed memory.


How can this vulnerability impact me? :

A use-after-free vulnerability can lead to undefined behavior including system crashes, data corruption, or potential escalation of privileges if exploited.

In this specific case, an attacker or a faulty process could trigger the error path in add_adev(), causing the kernel to access freed memory, which might be leveraged to compromise system stability or security.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart