CVE-2025-71304
smack: /smack/doi: accept previously used values
Reported by linux · Published May 27, 2026
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)
EPSS 0.16% · 5.3th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| perf | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e114e473771c848c3cfec05f0123e70f1cdbdc99, e114e473771c848c3cfec05f0123e70f1cdbdc99, e114e473771c848c3cfec05f0123e70f1cdbdc99 |
| Linux | Linux | 2.6.25, 0, 5.10.252 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.18-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.77-99.140 | 0 |
| Linux | Linux | 2.6.25, 5.15.202, 6.1.165 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
…and 26 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (16 in total, the first dated here)
- May 29, 2026 Security Advisory (131 in total, the first dated here)
- Jun 11, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-71304
vulnetix vdb fixes CVE-2025-71304
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71304/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart