ipvs: clear IPv4 options after rebasing tunnel ICMP errors
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel ed246dd85ebf27c1f6b7897834d40786c0ca3006, Kernel 37c61b3745129cbd682c557b51345828120972e5, Kernel 384b4dae14277d369221d187e9b3af56c79d2e50 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: ipvs: clear IPv4 options after rebasing tunnel ICMP errors ip_vs_in_icmp() rebases an skb from the outer ICMP packet to the quoted original request before passing it to icmp_send(). However, IPCB(skb)->opt still describes the outer IPv4 header. A timestamp option in the outer header can therefore leave an offset that points into the quoted transport header after the rebase. __ip_options_echo() treats a byte at that stale location as the option length and copies it into the fixed-size option storage on the __icmp_send() stack, causing a stack out-of-bounds write. Clear the stale option metadata after resetting the network header. Keep the remaining control block fields, including the ingress interface used by the ICMP response path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <ed246dd85ebf27c1f6b7897834d40786c0ca3006, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <37c61b3745129cbd682c557b51345828120972e5, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <384b4dae14277d369221d187e9b3af56c79d2e50, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <6f46fc460e9316062bdcdf89199eb5d7a33da33b, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <75eec935444db4af2123e0491936f6e273d7ea00, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <79ffa99202c944467e28b13b513bf2998732edff, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <c9413b50204738fbc429bb86bf01353c393a6c28, >=f2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e <e0ba936287dfe9783426aac27e5fd76fe35b38c9, =3.7 | ed246dd85ebf27c1f6b7897834d40786c0ca3006, 37c61b3745129cbd682c557b51345828120972e5, 384b4dae14277d369221d187e9b3af56c79d2e50, 6f46fc460e9316062bdcdf89199eb5d7a33da33b, 75eec935444db4af2123e0491936f6e273d7ea00, 79ffa99202c944467e28b13b513bf2998732edff, c9413b50204738fbc429bb86bf01353c393a6c28, e0ba936287dfe9783426aac27e5fd76fe35b38c9 |
| linux-kernel: Kernel | >=5.11.0 <5.15.216, >=5.16.0 <6.1.183, >=6.13.0 <6.18.45, >=6.19.0 <7.1.9, >=6.2.0 <6.6.152, >=6.7.0 <6.12.104, >=3.7.0 <5.10.265 | 5.15.216, 6.1.183, 6.18.45, 7.1.9, 6.6.152, 6.12.104, 5.10.265 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket