Linux
inet: RAW sockets using IPPROTO_RAW MUST drop incoming ICMP
In the Linux kernel, the following vulnerability has been resolved: inet: RAW sockets using IPPROTO_RAW MUST drop incoming ICMP Yizhou Zhao reported that simply having one RAW socket on protocol IPPROTO_RAW (255) was dangerous. socket(AF_INET, SOCK_RAW, 255); A malicious incoming ICMP packet can set the protocol field to 255 and match this socket, leading to FNHE cache changes. inner = IP(src="192.168.2.1", dst="8.8.8.8", proto=255)/Raw("TEST") pkt = IP(src="192.168.1.1", dst="192.168.2.1")/ICMP(type=3, code=4, nexthopmtu=576)/inner "man 7 raw" states: A protocol of IPPROTO_RAW implies enabled IP_HDRINCL and is able to send any IP protocol that is specified in the passed header. Receiving of all IP protocols via IPPROTO_RAW is not possible using raw sockets. Make sure we drop these malicious packets.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47276297140ee6712646f9b19fb04fe26daedd01
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < db76b75ede3810e7cf9cfea5067d4f3e0993768b
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 19e42490c89bac9a388f28179e66bebbef350f99
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 531c1aec81bfe19d00af13da5531fbb8209e4bd2
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 719d3932b8f6e3348ce2f0ac58e278301fc17575
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c89477ad79446867394360b29bb801010fc3ff22
Fixed in 47276297140ee6712646f9b19fb04fe26daedd01, db76b75ede3810e7cf9cfea5067d4f3e0993768b, 19e42490c89bac9a388f28179e66bebbef350f99, 531c1aec81bfe19d00af13da5531fbb8209e4bd2, 719d3932b8f6e3348ce2f0ac58e278301fc17575, c89477ad79446867394360b29bb801010fc3ff22
- 2.6.12
Fixed in 0, 6.1.187, 6.6.128, 6.12.75, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to 47276297140ee6712646f9b19fb04fe26daedd01 or db76b75ede3810e7cf9cfea5067d4f3e0993768b or 19e42490c89bac9a388f28179e66bebbef350f99 or 531c1aec81bfe19d00af13da5531fbb8209e4bd2 or 719d3932b8f6e3348ce2f0ac58e278301fc17575 or c89477ad79446867394360b29bb801010fc3ff22 or later.
Upgrade Linux to 0 or 6.1.187 or 6.6.128 or 6.12.75 or 6.18.14 or 6.19.4 or 7.0 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.