Commit 7167cde
CKI Backport Bot
wifi: ath12k: Fix invalid data access in ath12k_dp_rx_h_undecap_nwifi
JIRA: https://issues.redhat.com/browse/RHEL-93267
CVE: CVE-2025-37943
commit 9a0dddf
Author: Manish Dharanenthiran <quic_mdharane@quicinc.com>
Date: Tue Feb 11 14:33:02 2025 +0530
wifi: ath12k: Fix invalid data access in ath12k_dp_rx_h_undecap_nwifi
In certain cases, hardware might provide packets with a
length greater than the maximum native Wi-Fi header length.
This can lead to accessing and modifying fields in the header
within the ath12k_dp_rx_h_undecap_nwifi function for
DP_RX_DECAP_TYPE_NATIVE_WIFI decap type and
potentially resulting in invalid data access and memory corruption.
Add a sanity check before processing the SKB to prevent invalid
data access in the undecap native Wi-Fi function for the
DP_RX_DECAP_TYPE_NATIVE_WIFI decap type.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Signed-off-by: Manish Dharanenthiran <quic_mdharane@quicinc.com>
Signed-off-by: Tamizh Chelvam Raja <tamizh.raja@oss.qualcomm.com>
Link: https://patch.msgid.link/20250211090302.4105141-1-tamizh.raja@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>1 parent dbbb95d commit 7167cde
1 file changed
+40
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2530 | 2530 | | |
2531 | 2531 | | |
2532 | 2532 | | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
2533 | 2556 | | |
2534 | 2557 | | |
2535 | 2558 | | |
| |||
2588 | 2611 | | |
2589 | 2612 | | |
2590 | 2613 | | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
2591 | 2619 | | |
2592 | 2620 | | |
2593 | 2621 | | |
| |||
2978 | 3006 | | |
2979 | 3007 | | |
2980 | 3008 | | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
2981 | 3012 | | |
2982 | 3013 | | |
2983 | 3014 | | |
| |||
3720 | 3751 | | |
3721 | 3752 | | |
3722 | 3753 | | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
3723 | 3757 | | |
3724 | 3758 | | |
3725 | 3759 | | |
| |||
3764 | 3798 | | |
3765 | 3799 | | |
3766 | 3800 | | |
3767 | | - | |
| 3801 | + | |
3768 | 3802 | | |
3769 | 3803 | | |
3770 | 3804 | | |
| |||
3782 | 3816 | | |
3783 | 3817 | | |
3784 | 3818 | | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
3785 | 3822 | | |
3786 | 3823 | | |
3787 | 3824 | | |
3788 | 3825 | | |
3789 | 3826 | | |
3790 | 3827 | | |
3791 | 3828 | | |
| 3829 | + | |
3792 | 3830 | | |
3793 | 3831 | | |
3794 | 3832 | | |
| |||
3807 | 3845 | | |
3808 | 3846 | | |
3809 | 3847 | | |
3810 | | - | |
| 3848 | + | |
3811 | 3849 | | |
3812 | 3850 | | |
3813 | 3851 | | |
| |||
0 commit comments