In the Linux kernel, the following vulnerability has been resolved:
net/sched: cls_api: fix error handling causing NULL dereference
tcf_exts_miss_cookie_base_alloc() calls xa_alloc_cyclic() which can
return 1 if the allocation succeeded after wrapping. This was treated as
an error, with value 1 returned to caller tcf_exts_init_ex() which sets
exts->actions to NULL and returns 1 to caller fl_change().
fl_change() treats err == 1 as success, calling tcf_exts_validate_ex()
which calls tcf_action_init() with exts->actions as argument, where it
is dereferenced.
Example trace:
BUG: kernel NULL pointer dereference, address: 0000000000000000
CPU: 114 PID: 16151 Comm: handler114 Kdump: loaded Not tainted 5.14.0-503.16.1.el9_5.x86_64 #1
RIP: 0010:tcf_action_init+0x1f8/0x2c0
Call Trace:
tcf_action_init+0x1f8/0x2c0
tcf_exts_validate_ex+0x175/0x190
fl_change+0x537/0x1120 [cls_flower]
Security readout for executives and security teams
Plain-English summary
CVE-2025-21857 is a Linux kernel flaw that can crash the system when a local low-privileged path reaches a traffic-control error-handling bug. The main business risk is availability: affected servers or workloads could suffer kernel NULL pointer dereference crashes, causing outages or forced recovery.
Executive priority
Treat as a scheduled availability fix unless affected systems host critical workloads or untrusted local users. It is not supported as remotely exploitable or actively exploited by the provided evidence, but kernel crashes can still create material operational disruption.
Technical view
The bug is in net/sched cls_api error handling. tcf_exts_miss_cookie_base_alloc() may return 1 after a successful wrapped xa_alloc_cyclic() allocation. That value is misread across tcf_exts_init_ex() and fl_change(), leaving exts->actions NULL before tcf_exts_validate_ex() calls tcf_action_init(), where it is dereferenced.
Likely exposure
Exposure is limited to Linux systems running affected kernel versions or unfixed vendor kernels. The CVSS vector is local, low complexity, low privileges, no user interaction, with high availability impact and no stated confidentiality or integrity impact.
Exploitation context
The source bundle does not cite active exploitation, and KEV status is false. Available evidence supports a local denial-of-service risk, not remote compromise. No public exploit status is established by the provided sources.
Researcher notes
The key nuance is the return value mismatch: xa_alloc_cyclic() success after wrap can return 1, which later collides with caller success handling while exts->actions has been nulled. Version mapping is incomplete without distribution backport data.
Mitigation direction
Apply fixed Linux stable or distribution kernel updates when available.
Review the referenced upstream stable commits for affected kernel branches.
Check vendor advisories before assuming distro kernel exposure or fixed status.
Reduce unnecessary local account and workload access on exposed systems.
Prioritize reboot planning where kernel updates are required.
Validation and detection
Inventory Linux kernel versions across servers, hosts, and appliances.
Compare installed kernels with vendor guidance and upstream stable fixes.
Review crash logs for NULL dereferences involving tcf_action_init or cls_flower.
Confirm whether affected kernels have backported fixes from the referenced commits.
Track remediation through kernel package version and reboot completion.
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.