quic-go affected by an ICMP Packet Too Large Injection Attack on Linux
cve-program · CVE-2024-53259
Publishedquic-go is an implementation of the QUIC protocol in Go. An off-path attacker can inject an ICMP Packet Too Large packet. Since affected quic-go versions used IP_PMTUDISC_DO, the kernel would then return a "message too large" error on sendmsg, i.e. when quic-go attempts to send a packet that exceeds the MTU claimed in that ICMP packet. By setting this value to smaller than 1200 bytes (the minimum MTU for QUIC), the attacker can disrupt a QUIC connection. Crucially, this can be done after completion of the handshake, thereby circumventing any TCP fallback that might be implemented on the application layer (for example, many browsers fall back to HTTP over TCP if they're unable to establish a QUIC connection). The attacker needs to at least know the client's IP and port tuple to mount an attack. This vulnerability is fixed in 0.48.2.
Read the publisher's advisoryeuvd · EUVD-2024-3494
Publishedquic-go is an implementation of the QUIC protocol in Go. An off-path attacker can inject an ICMP Packet Too Large packet. Since affected quic-go versions used IP_PMTUDISC_DO, the kernel would then return a "message too large" error on sendmsg, i.e. when quic-go attempts to send a packet that exceeds the MTU claimed in that ICMP packet. By setting this value to smaller than 1200 bytes (the minimum MTU for QUIC), the attacker can disrupt a QUIC connection. Crucially, this can be done after completion of the handshake, thereby circumventing any TCP fallback that might be implemented on the application layer (for example, many browsers fall back to HTTP over TCP if they're unable to establish a QUIC connection). The attacker needs to at least know the client's IP and port tuple to mount an attack. This vulnerability is fixed in 0.48.2.
Read the publisher's advisorynvd · CVE-2024-53259
Publishedquic-go is an implementation of the QUIC protocol in Go. An off-path attacker can inject an ICMP Packet Too Large packet. Since affected quic-go versions used IP_PMTUDISC_DO, the kernel would then return a "message too large" error on sendmsg, i.e. when quic-go attempts to send a packet that exceeds the MTU claimed in that ICMP packet. By setting this value to smaller than 1200 bytes (the minimum MTU for QUIC), the attacker can disrupt a QUIC connection. Crucially, this can be done after completion of the handshake, thereby circumventing any TCP fallback that might be implemented on the application layer (for example, many browsers fall back to HTTP over TCP if they're unable to establish a QUIC connection). The attacker needs to at least know the client's IP and port tuple to mount an attack. This vulnerability is fixed in 0.48.2.
Read the publisher's advisoryosv · GHSA-px8v-pp82-rcvr
Published### Impact An off-path attacker can inject an ICMP Packet Too Large packet. Since affected quic-go versions used `IP_PMTUDISC_DO`, the kernel would then return a "message too large" error on `sendmsg`, i.e. when quic-go attempts to send a packet that exceeds the MTU claimed in that ICMP packet. By setting this value to smaller than 1200 bytes (the minimum MTU for QUIC), the attacker can disrupt a QUIC connection. Crucially, this can be done after completion of the handshake, thereby circumventing any TCP fallback that might be implemented on the application layer (for example, many browsers fall back to HTTP over TCP if they're unable to establish a QUIC connection). As far as I understand, the kernel tracks the MTU per 4-tuple, so the attacker needs to at least know the client's IP and port tuple to mount an attack (assuming that it knows the server's IP and port). ### Patches The fix is easy: Use `IP_PMTUDISC_PROBE` instead of `IP_PMTUDISC_DO`. This socket option only sets the DF bit, but disables the kernel's MTU tracking. _Has the problem been patched? What versions should users upgrade to?_ Fixed in https://github.com/quic-go/quic-go/pull/4729 Released in https://github.com/quic-go/quic-go/releases/tag/v0.48.2 ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Use iptables to drop ICMP Unreachable packets. ### References _Are there any links users can visit to find out more?_ This bug was discovered while doing research for my new IETF draft on IP fragmentation: https://datatracker.ietf.org/doc/draft-seemann-tsvwg-udp-fragmentation/
Read the publisher's advisoryosv · GO-2024-3302
PublishedICMP Packet Too Large Injection Attack on Linux in github.com/quic-go/quic-go
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2024-53259 · CVE overview and exploitation status
cve-program · CVE-2024-53259
- https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr
- https://github.com/quic-go/quic-go/pull/4729
- https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50
- https://github.com/quic-go/quic-go/releases/tag/v0.48.2
euvd · EUVD-2024-3494
- https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr
- https://github.com/quic-go/quic-go/pull/4729
- https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50
- https://github.com/quic-go/quic-go/releases/tag/v0.48.2
nvd · CVE-2024-53259
- https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50
- https://github.com/quic-go/quic-go/pull/4729
- https://github.com/quic-go/quic-go/releases/tag/v0.48.2
- https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr
osv · GHSA-px8v-pp82-rcvr
- https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr
- https://nvd.nist.gov/vuln/detail/CVE-2024-53259
- https://github.com/quic-go/quic-go/pull/4729
- https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50
- https://github.com/quic-go/quic-go
- https://github.com/quic-go/quic-go/releases/tag/v0.48.2
osv · GO-2024-3302
- https://github.com/quic-go/quic-go/security/advisories/GHSA-px8v-pp82-rcvr
- https://github.com/quic-go/quic-go/commit/ca31dd355cbe5fc6c5807992d9d1149c66c96a50
- https://github.com/quic-go/quic-go/pull/4729
- https://github.com/quic-go/quic-go/releases/tag/v0.48.2
- https://datatracker.ietf.org/doc/draft-seemann-tsvwg-udp-fragmentation/
Related changes
Linked by CVE identifierNo related changes are available here.