ip_gre: Reject enabling collect metadata through changelink
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: ip_gre: Reject enabling collect metadata through changelink ipgre_netlink_parms() can enable collect_md on an existing GRE, GRETAP or ERSPAN device. Unlike newlink, changelink does not enforce metadata tunnel uniqueness. Converting a non-metadata device can therefore replace the metadata receive entry for another device of the same type in the same netns. Deleting either device then clears the shared entry, breaking metadata receive lookup for the surviving device. If parameter validation fails after collect_md is set, deleting the modified device can also clear an entry it never owned. Reject enabling metadata mode in both changelink callbacks before any encapsulation or tunnel parameters are modified. Allow requests that repeat the metadata attribute on an existing metadata device.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in c80315da84998b69b8829785a174b0bf72a81992; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in cff8b520312e750ad38967c30128e1534cbf9484; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in 1dc759571f3df14891175fc52527f7624ba01322; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in da2e0cfbb620b199927a1e5b93b7cfde32083c7d; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in 2e54d53b65e296b4b4bdc2cdd3b2b58dfa8d8c5c; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in bdd41b96e814300c66222cf4e47ecb8aef995656; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in 63c5e48d6f7f5722a48f63e13e961dc5302894ed; From 2e15ea390e6f4466655066d97e22ec66870a042c · fixed in a3f315be9d30eeb6938d11fa17fd4b32d52f7c42
- Linux Linux
4.3
- KernelLinux
From 4.3.0 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9
References 8
git.kernel.org
- stable/c/c80315da84998b69b8829785a174b0bf72a81992
- stable/c/cff8b520312e750ad38967c30128e1534cbf9484
- stable/c/1dc759571f3df14891175fc52527f7624ba01322
- stable/c/da2e0cfbb620b199927a1e5b93b7cfde32083c7d
- stable/c/2e54d53b65e296b4b4bdc2cdd3b2b58dfa8d8c5c
- stable/c/bdd41b96e814300c66222cf4e47ecb8aef995656
- stable/c/63c5e48d6f7f5722a48f63e13e961dc5302894ed
- stable/c/a3f315be9d30eeb6938d11fa17fd4b32d52f7c42