VDB

CVE-2025-71304

CVE-2025-71304 PUBLISHED

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.

PackageEcosystemFixed in
kernel-headersAmazon Linux1:6.1.166-197.305.amzn2023
perf6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel6.18-headersAmazon Linux1:6.18.15-14.217.amzn2023
kernel6.12-headersAmazon Linux1:6.12.77-99.140.amzn2023
perfAmazon Linux1:6.1.166-197.305.amzn2023
kernel6.18Amazon Linux1:6.18.15-14.217.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.77-99.140.amzn2023
kernel-develAmazon Linux1:6.1.166-197.305.amzn2023
kernel-modules-extraAmazon Linux1:6.1.166-197.305.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.16%
5.3th percentile

Affected products

VendorProductVersions
LinuxLinuxe114e473771c848c3cfec05f0123e70f1cdbdc99, e114e473771c848c3cfec05f0123e70f1cdbdc99, e114e473771c848c3cfec05f0123e70f1cdbdc99
LinuxLinux2.6.25, 0, 5.10.252
amazon:2023kernel-headers0
amazon:2023perf6.120
amazon:2023kernel6.120
amazon:2023kernel6.18-headers0
amazon:2023kernel6.12-headers0
amazon:2023perf0
amazon:2023kernel6.180
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.18-libbpf0
amazon:2023kernel-livepatch-6.12.77-99.1400
LinuxLinux2.6.25, 5.15.202, 6.1.165
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-modules-extra-common0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›