CVE-2025-21857
published medium CVSS 3.1 · 5.5net/sched: cls_api: fix error handling causing NULL dereference
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux80cd22c35c9001fe72bf614d29439de41933deca to < de4b679aa3b4da7ec34f639df068b914f20e3c3c · 80cd22c35c9001fe72bf614d29439de41933deca to < 3e4c56cf41876ef2a82f0877fe2a67648f8632b8 · 80cd22c35c9001fe72bf614d29439de41933deca to < 3c74b5787caf59bb1e9c5fe0a360643a71eb1e8a · 80cd22c35c9001fe72bf614d29439de41933deca to < 071ed42cff4fcdd89025d966d48eabef59913bf2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.3 (affected) · 0 to < 6.3 (unaffected · semver) · 6.6.80 through 6.6.* (unaffected · semver) · 6.12.17 through 6.12.* (unaffected · semver) · 6.13.5 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-tools-libsaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 80cd22c35c9001fe72bf614d29439de41933deca to < de4b679aa3b4da7ec34f639df068b914f20e3c3c (affected · git)80cd22c35c9001fe72bf614d29439de41933deca to < 3e4c56cf41876ef2a82f0877fe2a67648f8632b8 (affected · git)80cd22c35c9001fe72bf614d29439de41933deca to < 3c74b5787caf59bb1e9c5fe0a360643a71eb1e8a (affected · git)80cd22c35c9001fe72bf614d29439de41933deca to < 071ed42cff4fcdd89025d966d48eabef59913bf2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.3 (affected)0 to < 6.3 (unaffected · semver)6.6.80 through 6.6.* (unaffected · semver)6.12.17 through 6.12.* (unaffected · semver)6.13.5 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
4Provider assertions
2Linux · cna
net/sched: cls_api: fix error handling causing NULL dereference
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 17cc13dfa860bf7c8d061c69f7f46e26648fa72eca261bcfd6f9c16ced2d7c46
- Ingested
- 23 Sep 2026, 08:39:46 UTC
- Source record
- Official CVE record