Linux
ipvs: revalidate ihl to prevent out-of-bounds access
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f55bb94946fb8ee6304590a731c39c1fbc3b28bc
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2512289cbf58706fd558e8fccea4e28003a2af54
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 041b2303c8019394735c1f76c5138657bf660a7d
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < eb81c8e758f49e04391f77d9470a6232bb5f1c7a
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5365f012451fce2453f13a568dcb72ea534c1e4d
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d93660df4dd1d116f608ada4a29a80a5d6f0a6ed
Fixed in f55bb94946fb8ee6304590a731c39c1fbc3b28bc, 2512289cbf58706fd558e8fccea4e28003a2af54, 041b2303c8019394735c1f76c5138657bf660a7d, eb81c8e758f49e04391f77d9470a6232bb5f1c7a, 5365f012451fce2453f13a568dcb72ea534c1e4d, d93660df4dd1d116f608ada4a29a80a5d6f0a6ed
- 2.6.12
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.1.10, 7.2
Mitigation
Upgrade Linux to f55bb94946fb8ee6304590a731c39c1fbc3b28bc or 2512289cbf58706fd558e8fccea4e28003a2af54 or 041b2303c8019394735c1f76c5138657bf660a7d or eb81c8e758f49e04391f77d9470a6232bb5f1c7a or 5365f012451fce2453f13a568dcb72ea534c1e4d or d93660df4dd1d116f608ada4a29a80a5d6f0a6ed or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.