netfilter: nf_conntrack: use get_unaligned_be32() in tcp_sack()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bb9fc37358ffa9de1cc2b2b6f1a559b926ef50d9 · < 4abc1af7ac209c066f4e5dd75cdd56876e5829a9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack: use get_unaligned_be32() in tcp_sack()
The timestamp-only fast path dereferences the option stream as *(__be32 *)ptr, which assumes 4-byte alignment that the TCP option stream does not guarantee. Use get_unaligned_be32() instead, which reads the value safely and already returns host byte order, so the htonl() on the comparison constant can be dropped.
This matches the existing get_unaligned_be32() use later in the same function.
From the CVE record · Linux
The nf_conntrack TCP SACK timestamp-only fast path reads a TCP option value as though it were four-byte aligned, but the option stream does not guarantee that alignment. This can cause an unaligned read; the input does not specify attacker prerequisites or further impact.
Engineers running the Linux kernel should check whether their kernel includes this fix; affected versions are not specified.