1. 26 Aug, 2024 1 commit
    • Pablo Neira Ayuso's avatar
      netfilter: nf_tables: restore IP sanity checks for netdev/egress · 5fd06289
      Pablo Neira Ayuso authored
      Subtract network offset to skb->len before performing IPv4 header sanity
      checks, then adjust transport offset from offset from mac header.
      
      Jorge Ortiz says:
      
      When small UDP packets (< 4 bytes payload) are sent from eth0,
      `meta l4proto udp` condition is not met because `NFT_PKTINFO_L4PROTO` is
      not set. This happens because there is a comparison that checks if the
      transport header offset exceeds the total length.  This comparison does
      not take into account the fact that the skb network offset might be
      non-zero in egress mode (e.g., 14 bytes for Ethernet header).
      
      Fixes: 0ae8e4cc ("netfilter: nf_tables: set transport offset from mac header for netdev/egress")
      Reported-by: default avatarJorge Ortiz <jorge.ortiz.escribano@gmail.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      5fd06289
  2. 23 Aug, 2024 3 commits
  3. 22 Aug, 2024 28 commits
  4. 21 Aug, 2024 8 commits