ipv6: xfrm6: release dst on error in xfrm6_rcv_encap()
- 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.258, 5.15.209, 6.1.175, 6.6.140, 6.12.88, 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: ipv6: xfrm6: release dst on error in xfrm6_rcv_encap() xfrm6_rcv_encap() performs an IPv6 route lookup when the skb does not already have a dst attached. ip6_route_input_lookup() returns a referenced dst entry even when the lookup resolves to an error route. If dst->error is set, xfrm6_rcv_encap() drops the skb without attaching the dst to the skb and without releasing the reference returned by the lookup. Repeated packets hitting this path therefore leak dst entries. Release the dst before jumping to the drop path.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in a0721bcd72641c32b281f227a94505b31cf54117; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in a20b34f6e854fe6f2aa82528fae7a88759919eb4; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in 870560015ce6e0d8f841c6a8aba33c44be52c727; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in c2efc4956981066df2fef1cc77391b523db6d8e4; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in 554c9b090c8ac5b1c5c507f4badf8d5d0c9c6e13; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in 9d5047782f9bd2829e529df69209bf3232eb561f; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in 6a5eec0a2a0e99ec9743cf8f1c4082178811d90a; From 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · fixed in bc0fcb9823cd0894934cf968b525c575833d7078
- Linux Linux
5.8
- KernelLinux
From 5.8.0 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.140; From 6.7.0 · fixed in 6.12.88; From 6.13.0 · fixed in 6.18.30; From 6.19.0 · fixed in 7.0.7
References 8
git.kernel.org
- stable/c/a0721bcd72641c32b281f227a94505b31cf54117
- stable/c/a20b34f6e854fe6f2aa82528fae7a88759919eb4
- stable/c/870560015ce6e0d8f841c6a8aba33c44be52c727
- stable/c/c2efc4956981066df2fef1cc77391b523db6d8e4
- stable/c/554c9b090c8ac5b1c5c507f4badf8d5d0c9c6e13
- stable/c/9d5047782f9bd2829e529df69209bf3232eb561f
- stable/c/6a5eec0a2a0e99ec9743cf8f1c4082178811d90a
- stable/c/bc0fcb9823cd0894934cf968b525c575833d7078