netfilter: nft_tunnel: fix use-after-free on object destroy (Linux Linux)

CVE-2026-53212
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_tunnel: fix use-after-free on object destroy nft_tunnel_obj_destroy() calls metadata_dst_free() which directly kfree()s the metadata_dst, ignoring the dst_entry refcount. Packets that took a reference via dst_hold() in nft_tunnel_obj_eval() and are still queued (e.g. in a netem qdisc) are left with a dangling pointer. When these packets are eventually dequeued, dst_release() operates on freed memory. Replace metadata_dst_free() with dst_release() so the metadata_dst is freed only after all references are dropped. The dst subsystem already handles metadata_dst cleanup in dst_destroy() when DST_METADATA is set.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected af308b94a2a4a5a27bec9028354c4df444a7c8ba < 349df61526d2e39decc685d246202e3e284cfe05 ; affected af308b94a2a4a5a27bec9028354c4df444a7c8ba < 55b79b1ae42372012413ce0413181d26679b17ef ; affected af308b94a2a4a5a27bec9028354c4df444a7c8ba < 5e9ee18b27fde88cb6148202b33916c66693fe82 ; affected af308b94a2a4a5a27bec9028354c4df444a7c8ba < 8767fe4079affa74314d7eb3220e700150289842 ; affected af308b94a2a4a5a27bec9028354c4df444a7c8ba < fda6573a46ad24f35348e024905ee5bdf729797e ; affected af308b94a2a4a5a27bec9028354c4df444a7c8ba < 941d7394efda5e054e2d6f3e0dd0f6a9ba19aaa3
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.10.259 ≤ 5.10.* ; unaffected 5.15.210 ≤ 5.15.* ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD