android_kernel_motorola_sm6375/net/batman-adv
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stanislav Fort 30fc47248f batman-adv: fix OOB read/write in network-coding decode
commit d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087 upstream.

batadv_nc_skb_decode_packet() trusts coded_len and checks only against
skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing
payload headroom, and the source skb length is not verified, allowing an
out-of-bounds read and a small out-of-bounds write.

Validate that coded_len fits within the payload area of both destination
and source sk_buffs before XORing.

Fixes: 2df5278b02 ("batman-adv: network coding - receive coded packets and decode them")
Cc: stable@vger.kernel.org
Reported-by: Stanislav Fort <disclosure@aisle.com>
Signed-off-by: Stanislav Fort <stanislav.fort@aisle.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-09 18:43:59 +02:00
..
bat_algo.c
bat_algo.h
bat_iv_ogm.c batman-adv: Ignore own maximum aggregation size during RX 2025-04-10 14:29:38 +02:00
bat_iv_ogm.h
bat_v.c batman-adv: Drop unmanaged ELP metric worker 2025-03-13 12:43:24 +01:00
bat_v.h
bat_v_elp.c batman-adv: Drop unmanaged ELP metric worker 2025-03-13 12:43:24 +01:00
bat_v_elp.h batman-adv: Drop unmanaged ELP metric worker 2025-03-13 12:43:24 +01:00
bat_v_ogm.c batman-adv: Ignore own maximum aggregation size during RX 2025-04-10 14:29:38 +02:00
bat_v_ogm.h
bitarray.c
bitarray.h
bridge_loop_avoidance.c
bridge_loop_avoidance.h
debugfs.c
debugfs.h
distributed-arp-table.c batman-adv: Broken sync while rescheduling delayed work 2023-06-14 10:59:56 +02:00
distributed-arp-table.h
fragmentation.c batman-adv: Don't skb_split skbuffs with frag_list 2022-05-18 09:47:24 +02:00
fragmentation.h
gateway_client.c
gateway_client.h
gateway_common.c
gateway_common.h
hard-interface.c batman-adv: Don't increase MTU when set by user 2023-08-30 16:27:25 +02:00
hard-interface.h
hash.c
hash.h
icmp_socket.c
icmp_socket.h
Kconfig
log.c
log.h
main.c
main.h
Makefile
multicast.c ipv6: make mc_forwarding atomic 2022-04-15 14:18:32 +02:00
multicast.h
netlink.c batman-adv: Hold rtnl lock during MTU update via netlink 2023-08-30 16:27:25 +02:00
netlink.h
network-coding.c batman-adv: fix OOB read/write in network-coding decode 2025-09-09 18:43:59 +02:00
network-coding.h
originator.c batman-adv: Don't accept TT entries for out-of-spec VIDs 2024-07-05 09:08:31 +02:00
originator.h
routing.c
routing.h
send.c
send.h
soft-interface.c batman-adv: Don't increase MTU when set by user 2023-08-30 16:27:25 +02:00
soft-interface.h
sysfs.c
sysfs.h
tp_meter.c
tp_meter.h
trace.c
trace.h
translation-table.c batman-adv: Do not let TT changes list grows indefinitely 2024-12-19 18:05:03 +01:00
translation-table.h
tvlv.c
tvlv.h
types.h batman-adv: Drop unmanaged ELP metric worker 2025-03-13 12:43:24 +01:00