Commit 53c06ad
committed
wifi: ath12k: Fix invalid data access in ath12k_dp_rx_h_undecap_nwifi
jira LE-3262
cve CVE-2025-37943
Rebuild_History Non-Buildable kernel-5.14.0-570.21.1.el9_6
commit-author Manish Dharanenthiran <quic_mdharane@quicinc.com>
commit 9a0dddf
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>
(cherry picked from commit 9a0dddf)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent fc28e9f commit 53c06ad
1 file changed
+40
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2470 | 2470 | | |
2471 | 2471 | | |
2472 | 2472 | | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2473 | 2496 | | |
2474 | 2497 | | |
2475 | 2498 | | |
| |||
2528 | 2551 | | |
2529 | 2552 | | |
2530 | 2553 | | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
2531 | 2559 | | |
2532 | 2560 | | |
2533 | 2561 | | |
| |||
2880 | 2908 | | |
2881 | 2909 | | |
2882 | 2910 | | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
2883 | 2914 | | |
2884 | 2915 | | |
2885 | 2916 | | |
| |||
3600 | 3631 | | |
3601 | 3632 | | |
3602 | 3633 | | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
3603 | 3637 | | |
3604 | 3638 | | |
3605 | 3639 | | |
| |||
3644 | 3678 | | |
3645 | 3679 | | |
3646 | 3680 | | |
3647 | | - | |
| 3681 | + | |
3648 | 3682 | | |
3649 | 3683 | | |
3650 | 3684 | | |
| |||
3662 | 3696 | | |
3663 | 3697 | | |
3664 | 3698 | | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
3665 | 3702 | | |
3666 | 3703 | | |
3667 | 3704 | | |
3668 | 3705 | | |
3669 | 3706 | | |
3670 | 3707 | | |
3671 | 3708 | | |
| 3709 | + | |
3672 | 3710 | | |
3673 | 3711 | | |
3674 | 3712 | | |
| |||
3687 | 3725 | | |
3688 | 3726 | | |
3689 | 3727 | | |
3690 | | - | |
| 3728 | + | |
3691 | 3729 | | |
3692 | 3730 | | |
3693 | 3731 | | |
| |||
0 commit comments