LiveActive security incident?Get immediate response
CVE Record

CVE-2025-21857: net/sched: cls_api: fix error handling causing NULL dereference

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]

MediumCVSS 5.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
high
Sources
6

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-21857 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

1CVSS vectors
3Timeline events
1ADP providers
5Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

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.

ScoreVersionSeverityVectorExploitImpactSource
5.5CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H1.83.6CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

5.5Medium
CVSS 3.1 vector shape for CVE-2025-21857Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux80cd22c35c9001fe72bf614d29439de41933deca, 80cd22c35c9001fe72bf614d29439de41933deca, 80cd22c35c9001fe72bf614d29439de41933deca, 80cd22c35c9001fe72bf614d29439de41933decaunaffected
LinuxLinux6.3, 0, 6.6.80, 6.12.17, 6.13.5, 6.14affected
Weakness

CWE details

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.