Kernel-memory disclosure via freed MAC buffer
Published Oct 17, 2022 · Updated Apr 15, 2025
A read-after-free in Linux kernel 5.19 through 5.19.16 and 6.0 through 6.0.2 allows local users to expose kernel memory via the Sunplus driver. The spl2sw_nvmem_get_mac_address function frees the MAC-address buffer before dev_info formats it when NVMEM supplies an invalid address. Reachability requires the Sunplus SP7021 driver to process an invalid NVMEM MAC during device initialization, and disclosure is limited to bytes read from the freed buffer into the kernel log.
Summary
What happened
A read-after-free in Linux kernel 5.19 through 5.19.16 and 6.0 through 6.0.2 allows local users to expose kernel memory via the Sunplus driver. The spl2sw_nvmem_get_mac_address function frees the MAC-address buffer before dev_info formats it when NVMEM supplies an invalid address. Reachability requires the Sunplus SP7021 driver to process an invalid NVMEM MAC during device initialization, and disclosure is limited to bytes read from the freed buffer into the kernel log.
The record
- CVE
- CVE-2022-3541
- Published
- Oct 17, 2022
- Updated
- Apr 15, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-119
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 17, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=n/a
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo