CVE-2025-21798: firewire: test: Fix potential null dereference in firewire kunit test
In the Linux kernel, the following vulnerability has been resolved:
firewire: test: Fix potential null dereference in firewire kunit test
kunit_kzalloc() may return a NULL pointer, dereferencing it without
NULL check may lead to NULL dereference.
Add a NULL check for test_state.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel availability bug in FireWire KUnit test code. A failed allocation can be dereferenced, causing a NULL pointer crash. The supplied evidence does not show remote exposure, data theft, privilege escalation, or active exploitation.
Executive priority
Handle through normal kernel patch governance unless affected kernel test paths are operationally important. There is no supplied evidence of internet exposure or active exploitation, but a local availability crash still matters for reliability-sensitive environments.
Technical view
CVE-2025-21798 is a CWE-476 NULL pointer dereference in Linux FireWire test code. kunit_kzalloc() can return NULL, and test_state was dereferenced without checking. The fix adds a NULL check. CVSS 3.1 is 5.5: local access, low privileges, no user interaction, availability impact only.
Likely exposure
Exposure appears limited to affected Linux kernel versions and code paths involving the FireWire KUnit test. The bundle lists Linux 6.8, 6.12.13, 6.13.2, and 6.14 as affected evidence points, but version range details are incomplete.
Exploitation context
The bundle marks KEV as false and provides no evidence of active exploitation. CVSS indicates local, low-complexity exploitation with low privileges and availability impact. The described flaw is a NULL dereference, not a code execution issue.
Researcher notes
The source evidence is narrow: it identifies a KUnit allocation failure path and stable kernel commits. It does not provide exploit details, distribution-specific fixed versions, or proof of real-world exploitation. Treat affected version boundaries cautiously and defer to vendor advisories.
Mitigation direction
Check Linux vendor or distribution advisories for CVE-2025-21798 coverage.
Update affected kernels to builds containing the referenced stable commits.
For custom kernels, apply the upstream fix adding the test_state NULL check.
Prioritize systems that build or run affected kernel KUnit test code.
Validation and detection
Inventory Linux kernel versions against the CVE record and vendor advisories.
Confirm the kernel source includes a NULL check after kunit_kzalloc().
Review package changelogs for CVE-2025-21798 or referenced stable commits.
Verify affected FireWire KUnit test code is absent, disabled, or patched.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.