CVE-2025-38156
NoneCVSS
—
EPSS
0.2%
Published
Jul 3, 2025
CISA due date
—
Cloudanix analysis
A flaw in certain Linux wireless drivers can crash the whole system when hardware setup fails in an unexpected way.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unchecked return value from devm_ioremap() in mt7996_mmio_wed_init() leads to NULL pointer dereference during MediaTek mt7996 Wi-Fi MMIO WED initialization.
Why it matters to the business
Kernel crash or denial of service on systems using the affected mt7996 wireless hardware; low exploitation likelihood but requires prompt kernel updates on affected Linux distributions.
How an attack unfolds
An attacker with local access or the ability to influence driver loading and hardware configuration triggers the mt7996_mmio_wed_init path where ioremap fails, causing an immediate NULL dereference and system instability.
How to fix it
Update the Linux kernel to a version containing commit 1072fc0ca1f8d0d5397d24853386876f937b8e63 or later; apply distribution-specific backports for stable branches.
How to confirm the fix worked
Verify kernel source contains the referenced commit or test that mt7996_mmio_wed_init() now checks the devm_ioremap return value before use; confirm no NULL dereference occurs under simulated ioremap failure.
Typical attack path
- Obtain local access or control over driver initialization conditions
- Cause or wait for mt7996_mmio_wed_init() execution during Wi-Fi device probe
- Ensure devm_ioremap() returns NULL (e.g., resource conflict or allocation failure)
- Trigger NULL pointer dereference leading to kernel panic or oops
How to detect it
Search kernel logs and dmesg for mt7996_mmio_wed_init references, NULL pointer dereference oops, or panic traces involving the mt76 driver; correlate with Wi-Fi device probe events.
- mt7996_mmio_wed_init
- NULL pointer dereference.*mt76
- devm_ioremap.*mt7996
What your security team should do
- Apply the kernel fix containing commit 1072fc0ca1f8d0d5397d24853386876f937b8e63 immediately on all systems with mt7996 hardware
- Monitor kernel logs for mt7996-related oops or NULL pointer dereference events
- Prioritize updates on servers and workstations exposing wireless interfaces
The record
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: Fix null-ptr-deref in mt7996_mmio_wed_init() devm_ioremap() returns NULL on error. Currently, mt7996_mmio_wed_init() does not check for this case, which results in a NULL pointer dereference. Prevent null pointer dereference in mt7996_mmio_wed_init()
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | linux | 0 | No fix |
| Linux | Kernel | 6.8.0 | 6.12.34 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 0 | 6.12.0-160000.6.1.160000.2.4 |
| openSUSE:Leap 16.0 | kernel-docs | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-rt | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-source | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-syms | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 0 | 6.12.0-160000.6.1 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39884 In the Linux kernel, the following vulnerability has been resolved: btrfs: fix subvolume… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39882 In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix… Also affects linux