Description
In the Linux kernel, the following vulnerability has been resolved: net: qualcomm: rmnet: validate MAP frame length before ingress parsing When ingress deaggregation is disabled, rmnet_map_ingress_handler() passes the skb straight to __rmnet_map_ingress_handler(), skipping the length validation that rmnet_map_deaggregate() performs on the aggregated path. The parser then dereferences the MAP header and csum header/trailer based on the on-wire pkt_len without checking skb->len, so a short frame is read out of bounds: BUG: KASAN: slab-out-of-bounds in rmnet_map_checksum_downlink_packet Read of size 1 at addr ffff88801118ed00 by task exploit/147 Call Trace: ... rmnet_map_checksum_downlink_packet (drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:413) __rmnet_map_ingress_handler (drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c:96) rmnet_rx_handler (drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c:129) __netif_receive_skb_core.constprop.0 (net/core/dev.c:6089) netif_receive_skb (net/core/dev.c:6460) tun_get_user (drivers/net/tun.c:1955) tun_chr_write_iter (drivers/net/tun.c:2001) vfs_write (fs/read_write.c:688) ksys_write (fs/read_write.c:740) do_syscall_64 (arch/x86/entry/syscall_64.c:94) ... Factor that validation out of rmnet_map_deaggregate() into rmnet_map_validate_packet_len() and run it on the no-aggregation path too. The MAP header is bounds-checked first, since this path can receive a frame shorter than the header.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ceed73a2cf4aff2921802aa3d21d45280677547d to < ed25befc8c36f896b5878f9078faddb67fd7e2d0affectedceed73a2cf4aff2921802aa3d21d45280677547d to < a54d76d176e50d2fdbd39b7231efe256170339e4affectedceed73a2cf4aff2921802aa3d21d45280677547d to < 00f4c366dbca16a40772c3b7ec2d8cba839e9724affectedceed73a2cf4aff2921802aa3d21d45280677547d to < 3868c3244369ab709a90c9aad7534d406009b824affectedceed73a2cf4aff2921802aa3d21d45280677547d to < 14eb0c9491385d5361a292ea4974aec0e6887299affectedceed73a2cf4aff2921802aa3d21d45280677547d to < 1b12612c367e4be9b0814c0468e7e687835315b4affectedceed73a2cf4aff2921802aa3d21d45280677547d to < 231a8a4b76cb1b1827b3b19d7b3603642f5aaaefaffectedceed73a2cf4aff2921802aa3d21d45280677547d to < f0f1887a9e30712a1df03e152dce6fb91344b1f3affected
Linux Linux
Default version status: affected
4.14affected0 to < 4.14unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/ed25befc8c36f896b5878f9078faddb67fd7e2d0 ↗
- https://git.kernel.org/stable/c/a54d76d176e50d2fdbd39b7231efe256170339e4 ↗
- https://git.kernel.org/stable/c/00f4c366dbca16a40772c3b7ec2d8cba839e9724 ↗
- https://git.kernel.org/stable/c/3868c3244369ab709a90c9aad7534d406009b824 ↗
- https://git.kernel.org/stable/c/14eb0c9491385d5361a292ea4974aec0e6887299 ↗
- https://git.kernel.org/stable/c/1b12612c367e4be9b0814c0468e7e687835315b4 ↗
- https://git.kernel.org/stable/c/231a8a4b76cb1b1827b3b19d7b3603642f5aaaef ↗
- https://git.kernel.org/stable/c/f0f1887a9e30712a1df03e152dce6fb91344b1f3 ↗