First published: Fri Jul 12 2024(Updated: )
In the Linux kernel, the following vulnerability has been resolved: liquidio: Adjust a NULL pointer handling path in lio_vf_rep_copy_packet In lio_vf_rep_copy_packet() pg_info->page is compared to a NULL value, but then it is unconditionally passed to skb_add_rx_frag() which looks strange and could lead to null pointer dereference. lio_vf_rep_copy_packet() call trace looks like: octeon_droq_process_packets octeon_droq_fast_process_packets octeon_droq_dispatch_pkt octeon_create_recv_info ...search in the dispatch_list... ->disp_fn(rdisp->rinfo, ...) lio_vf_rep_pkt_recv(struct octeon_recv_info *recv_info, ...) In this path there is no code which sets pg_info->page to NULL. So this check looks unneeded and doesn't solve potential problem. But I guess the author had reason to add a check and I have no such card and can't do real test. In addition, the code in the function liquidio_push_packet() in liquidio/lio_core.c does exactly the same. Based on this, I consider the most acceptable compromise solution to adjust this issue by moving skb_add_rx_frag() into conditional scope. Found by Linux Verification Center (linuxtesting.org) with SVACE.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Linux kernel | >=4.15<4.19.317 | |
Linux Linux kernel | >=4.20<5.4.279 | |
Linux Linux kernel | >=5.5<5.10.221 | |
Linux Linux kernel | >=5.11<5.15.162 | |
Linux Linux kernel | >=5.16<6.1.95 | |
Linux Linux kernel | >=6.2<6.6.35 | |
Linux Linux kernel | >=6.7<6.9.6 | |
Linux Linux kernel | =6.10-rc1 | |
Linux Linux kernel | =6.10-rc2 | |
Linux Linux kernel | =6.10-rc3 | |
redhat/kernel | <4.19.317 | 4.19.317 |
redhat/kernel | <5.4.279 | 5.4.279 |
redhat/kernel | <5.10.221 | 5.10.221 |
redhat/kernel | <5.15.162 | 5.15.162 |
redhat/kernel | <6.1.95 | 6.1.95 |
redhat/kernel | <6.6.35 | 6.6.35 |
redhat/kernel | <6.9.6 | 6.9.6 |
redhat/kernel | <6.10 | 6.10 |
debian/linux | 5.10.223-1 5.10.226-1 6.1.115-1 6.1.119-1 6.11.10-1 6.12.5-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.