diff options
| author | Julian Anastasov <ja@ssi.bg> | 2026-07-30 21:35:05 +0300 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-07-31 15:58:16 +0200 |
| commit | 646922a0379496154e8c8faca4f8e2fd9100cacc (patch) | |
| tree | 5bbf2ddb1f70b3fabe649ed853982f6279f7981f /include/linux/serio.h | |
| parent | 7defddefa95b3699b05b23bf3ceea94d872509bb (diff) | |
ipvs: avoid out-of-bounds write in ip_vs_nat_icmp
Sashiko warns that local attacker can modify the packet
while it is processed by IPVS. Some places read the
IP ihl field multiple times which can cause out-of-bounds
access. One such place is ip_vs_nat_icmp where we
can write after the validated area.
Fix it by providing ciph argument just like it is done for
IPv6 and use ciph->len as offset to the embedded transport
header.
Modify some IPv4 header checks by reading the ihl field
only once.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://sashiko.dev/#/patchset/20260722101517.36313-1-ja%40ssi.bg
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/serio.h')
0 files changed, 0 insertions, 0 deletions
