CVE-2026-98948
mlxsw: spectrum_flower: Fix port range register leak in tmplt_create()
Check your servers for CVE-2026-98948
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98948 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
mlxsw: spectrum_flower: Fix port range register leak in tmplt_create()
mlxsw_sp_flower_tmplt_create() parses a flow_cls_offload template into a stack-local struct mlxsw_sp_acl_rule_info purely to compute rulei.values.elusage. Parsing can acquire port range registers via mlxsw_sp_flower_parse_ports_range(), but since this rulei never goes through mlxsw_sp_acl_rulei_destroy(), those registers were never released, including through chain template deletion.
Factor out of mlxsw_sp_acl_rulei_destroy() the code to actually release the necessary resources and call from mlxsw_sp_flower_tmplt_create() to plug the leak.
The issue was found during a review of Wentao Liang's patch referenced below.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.25% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fe22f7410527c2077223b5fd0fc0458db912f0db, before 41ad5bcf0219aaebf8ffb052c5e8177479330cde affected from fe22f7410527c2077223b5fd0fc0458db912f0db, before c8e934287debb29c6ded86b21e49fc72e186d15e affected from fe22f7410527c2077223b5fd0fc0458db912f0db, before 3938430f0237c59ca08d6a366e7657b2b7f8d0bb affected from fe22f7410527c2077223b5fd0fc0458db912f0db, before 4eaf1285b5c1e42f80e47f9fe0d391e70418db02 affected from fe22f7410527c2077223b5fd0fc0458db912f0db, before 7ea07afb230f1342ab0f9365edd0aae137f425d3
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.2.11 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98948 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98948
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98948
trivy image --scanners vuln IMAGE | grep CVE-2026-98948
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/41ad5bcf0219aaebf8ffb052c5e8177479330cde git.kernel.org
- https://git.kernel.org/stable/c/c8e934287debb29c6ded86b21e49fc72e186d15e git.kernel.org
- https://git.kernel.org/stable/c/3938430f0237c59ca08d6a366e7657b2b7f8d0bb git.kernel.org
- https://git.kernel.org/stable/c/4eaf1285b5c1e42f80e47f9fe0d391e70418db02 git.kernel.org
- https://git.kernel.org/stable/c/7ea07afb230f1342ab0f9365edd0aae137f425d3 git.kernel.org
Source: the record CVE-2026-98948 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse