Description
In the Linux kernel, the following vulnerability has been resolved: ipvs: revalidate ihl to prevent out-of-bounds access While the outer IP header is already pulled into the skb head, we must be careful and revalidate the embedded headers after reading them from the skb frags to prevent out-of-bounds access. One such place reported by Sashiko is ip_vs_nat_icmp() where local process can change the ihl field and after skb_ensure_writable() we can see larger value which is a problem for the ip_send_check(cih) calls. Add check to drop the packet if the ihl field is changed.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2512289cbf58706fd558e8fccea4e28003a2af54affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 041b2303c8019394735c1f76c5138657bf660a7daffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < eb81c8e758f49e04391f77d9470a6232bb5f1c7aaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 5365f012451fce2453f13a568dcb72ea534c1e4daffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d93660df4dd1d116f608ada4a29a80a5d6f0a6edaffected
Linux Linux
Default version status: affected
2.6.12affected0 to < 2.6.12unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.1.10 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/2512289cbf58706fd558e8fccea4e28003a2af54 ↗
- https://git.kernel.org/stable/c/041b2303c8019394735c1f76c5138657bf660a7d ↗
- https://git.kernel.org/stable/c/eb81c8e758f49e04391f77d9470a6232bb5f1c7a ↗
- https://git.kernel.org/stable/c/5365f012451fce2453f13a568dcb72ea534c1e4d ↗
- https://git.kernel.org/stable/c/d93660df4dd1d116f608ada4a29a80a5d6f0a6ed ↗