bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-64325

5.5medium

linux6.18.60 · 6.18.54 · 6.18.8in 3 of 4 releases

Reach linux · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.06.18.8
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimalNot built · autox86_64Openaarch64_minimalNot built · autox86_64Openaarch64_minimalNot built · autox86_64ANot affected

Description · NVD

wifi: mt76: mt7921/mt7925: fix NULL dereference in CSA beacon

This patch is based on a BUG as reported by Bongani Hlope at https://lore.kernel.org/all/20260502125824.425d7159@bongani-mini.home.org.za/

When a channel-switch announcement (CSA) beacon is received, cfg80211 queues a wiphy work item that eventually calls mt7921_channel_switch_rx_beacon(). If the station disconnects (or the channel context is otherwise torn down) between the time the work is queued and the time it runs, the driver's dev->new_ctx pointer can already have been cleared to NULL. mt7921_channel_switch_rx_beacon() then dereferences new_ctx unconditionally, triggering a NULL pointer dereference at address 0x0:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  RIP: 0010:mt7921_channel_switch_rx_beacon+0x1f/0x100 [mt7921_common]

The same missing guard exists in mt7925_channel_switch_rx_beacon(), which shares the same code pattern introduced by the same commit.

Add an early-return NULL check for dev->new_ctx in both mt7921_channel_switch_rx_beacon() and mt7925_channel_switch_rx_beacon(). When new_ctx is NULL there is no pending channel switch to process, so returning immediately is the correct and safe action.

Oops-Analysis: http://oops.fenrus.org/reports/lkml/20260502125824.425d7159@bongani-mini.home.org.za/report.html

Published 2026-07-25NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References 3
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-18 · settles 1 of 6

Fable 5.1 · high confidence · 2026-11-05

The fix for CVE-2026-64325 is already present in the linux 6.18.60 source used by this build: mt7921_channel_switch_rx_beacon() in drivers/net/wireless/mediatek/mt76/mt7921/main.c contains the early if (!dev->new_ctx) return; guard that the upstream/stable fix adds (stable commit 351dd7d2c80d is part of the 6.18.y series).

The mt7925 driver in this tree does not implement a channel_switch_rx_beacon callback and never touches dev->new_ctx, so the second vulnerable pattern described by the CVE does not exist in 6.18.60 at all.

No Infix patch touches this code; the fixed code comes straight from the stable tarball. NVD's "6.18.60" match is therefore stale relative to the stable backport.

Evidence 6

…/ is output/build/linux-6.18.60/

  1. `if (!dev->new_ctx) return;` early-return guard present in mt7921_channel_switch_rx_beacon() — this is exactly the hunk added by the CVE fix

    …/drivers/net/wireless/mediatek/mt76/mt7921/main.c:1511-1512

  2. Only mt7925_channel_switch_beacon (line 1726) exists; no mt7925_channel_switch_rx_beacon and no new_ctx dereference, so the vulnerable pattern is absent from the 6.18 mt7925 driver

    …/drivers/net/wireless/mediatek/mt76/mt7925/main.c (grep 'channel_switch|new_ctx')

  3. new_ctx field exists in struct mt792x_dev; only mt7921/main.c references it and that reference is guarded

    …/drivers/net/wireless/mediatek/mt76/mt792x.h:259

  4. Kernel is 6.18.60 from the stable tarball, no EXTRAVERSION

    …/Makefile (VERSION/PATCHLEVEL/SUBLEVEL)

  5. None of the 139 Infix kernel patches mention new_ctx, mt7921 or mt7925; the fix is from upstream stable, not a local backport

    …/.applied_patches_list and patches/ tree

  6. CONFIG_MT7921_COMMON/E/U=m and CONFIG_MT7925_COMMON/E/U=m — drivers are built as modules (relevant context only; verdict is decided by the fix being present)

    …/.config:2457-2463

Version and patches

CVE fixes: mainline d16713c06006, stable 77e7b127472a and 351dd7d2c80d (6.18.y). This tree is 6.18.60 and already contains the guard in mt7921_channel_switch_rx_beacon(); mt7925 in 6.18 never had the rx_beacon CSA handler. NVD's CPE range (6.18.60) does not account for the stable backport. No Infix patch applies to this code.

Recommendation

No action; document as N/A (fix already present in 6.18.60 stable source).

Open questions

None. (For context: even if it were unfixed, mt7921/mt7925 are PCIe/USB Wi-Fi client modules that would require a MediaTek 7921/7925 adapter attached to the x86_64 device and an STA association to a malicious/CSA-sending AP.)

Members of Kernel Kit decide. Sign in if you are one.