CVE-2025-71304·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smack: /smack/doi: accept previously used values Writing to /smack/doi a value that has ever been written there in the past disables networking for non-ambient labels. E.g. # cat /smack/doi 3 # netlabelctl -p cipso list Configured CIPSO mappings (1) DOI value : 3 mapping type : PASS_THROUGH # netlabelctl -p map list Configured NetLabel domain mappings (3) domain: "_" (IPv4) protocol: UNLABELED domain: DEFAULT (IPv4) protocol: CIPSO, DOI = 3 domain: DEFAULT (IPv6) protocol: UNLABELED # cat /smack/ambient _ # cat /proc/$$/attr/smack/current _ # ping -c1 10.1.95.12 64 bytes from 10.1.95.12: icmp_seq=1 ttl=64 time=0.964 ms # echo foo >/proc/$$/attr/smack/current # ping -c1 10.1.95.12 64 bytes from 10.1.95.12: icmp_seq=1 ttl=64 time=0.956 ms unknown option 86 # echo 4 >/smack/doi # echo 3 >/smack/doi !> [ 214.050395] smk_cipso_doi:691 cipso add rc = -17 # echo 3 >/smack/doi !> [ 249.402261] smk_cipso_doi:678 remove rc = -2 !> [ 249.402261] smk_cipso_doi:691 cipso add rc = -17 # ping -c1 10.1.95.12 !!> ping: 10.1.95.12: Address family for hostname not supported # echo _ >/proc/$$/attr/smack/current # ping -c1 10.1.95.12 64 bytes from 10.1.95.12: icmp_seq=1 ttl=64 time=0.617 ms This happens because Smack keeps decommissioned DOIs, fails to re-add them, and consequently refuses to add the “default” domain map: # netlabelctl -p cipso list Configured CIPSO mappings (2) DOI value : 3 mapping type : PASS_THROUGH DOI value : 4 mapping type : PASS_THROUGH # netlabelctl -p map list Configured NetLabel domain mappings (2) domain: "_" (IPv4) protocol: UNLABELED !> (no ipv4 map for default domain here) domain: DEFAULT (IPv6) protocol: UNLABELED Fix by clearing decommissioned DOI definitions and serializing concurrent DOI updates with a new lock. Also: - allow /smack/doi to live unconfigured, since adding a map (netlbl_cfg_cipsov4_map_add) may fail. CIPSO_V4_DOI_UNKNOWN(0) indicates the unconfigured DOI - add new DOI before removing the old default map, so the old map remains if the add fails (2008-02-04, Casey Schaufler)
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.4
Fixed in: 6.19.4
How to fix this CVE
Update your Linux kernel to version 6.19.4 or later to resolve a Smack security policy enforcement flaw that breaks networking for non-ambient security labels when DOI values are reused. This vulnerability causes kernel failures when attempting to re-add previously-used CIPSO DOI identifiers, resulting in network connectivity loss for labeled processes. Apply the patch immediately if your systems rely on Smack mandatory access control policies.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — you are vulnerable if running 6.19 through 6.19.3
- Verify Smack is enabled: grep SMACK /boot/config-$(uname -r) or cat /sys/module/smack/parameters/smack_enabled
- Check dmesg for Smack DOI errors: dmesg | grep -E 'smk_cipso_doi.*rc = -|cipso add rc = -17'
- Test DOI reuse: cat /smack/doi and attempt to write a previously used DOI value; if networking fails for non-ambient labels, vulnerability is present
FAQ
What is CVE-2025-71304?
A Smack kernel security module vulnerability where reusing previously-written DOI (Domain of Interpretation) values fails to properly re-add CIPSO mappings, breaking network communication for processes with non-ambient security labels until the system is reset to ambient context.
Is CVE-2025-71304 being actively exploited?
No, this vulnerability is not listed in the CISA KEV catalog and has no public exploits, though it poses a denial-of-service risk to systems running Smack-enabled kernels in production environments.
What versions of Kernel are affected by CVE-2025-71304?
Linux kernel versions 6.19 through 6.19.3 are vulnerable; the fix is included in kernel 6.19.4 and later releases.
How do I check if my server is vulnerable to CVE-2025-71304?
Run 'uname -r' and confirm you are running kernel 6.19.0 through 6.19.3, then verify Smack is active with 'cat /sys/module/smack/parameters/smack_enabled'. If both conditions are true and you reuse DOI values, you are vulnerable.
Does Defensia detect CVE-2025-71304?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server, CVE-2025-71304 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/199452f22d2f74b897fe826f81ec402b0a8461a0
- https://git.kernel.org/stable/c/1c7ee23dfcd18d80770d8f90f2ab5bb1b2bfd8a3
- https://git.kernel.org/stable/c/33d589ed60ae433b483761987b85e0d24e54584e
- https://git.kernel.org/stable/c/5a247a84de0ba44edbbd6be851c8a6b2aa60ff85
- https://git.kernel.org/stable/c/6ec091c5c7eeabd249a7c46813cad1e9f555f859
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71304. Free for 1 server.
Get started free