summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGururaj Pandurangi <quic_panduran@quicinc.com>2022-01-04 12:11:03 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2022-09-06 05:30:20 -0700
commit0c6dbf858a98d816e4cc02d62d74194c55546aa4 (patch)
treedd421c07b107595c33fa38d7854b69d8054c840d
parentf07caca0c485e5c961a1e6eb7803073778e0bf98 (diff)
qcacld-3.0: Avoid OOB read in dot11f_unpack_assoc_response
Avoid OOB read in dot11f_unpack_assoc_response API. Modify the check to nBuf-len > 1 to read another byte of pBufRemaining. This ensures a read of at least 2 bytes since all IEs have at least 2 bytes. Change-Id: Ic6756c11c05e68f0af5227971ce8b16a6c7e012a CRs-Fixed: 3104235
-rw-r--r--core/mac/src/include/dot11f.h3
-rw-r--r--core/mac/src/sys/legacy/src/utils/src/dot11f.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/mac/src/include/dot11f.h b/core/mac/src/include/dot11f.h
index 1a603f547d7f..eb7931dd25ad 100644
--- a/core/mac/src/include/dot11f.h
+++ b/core/mac/src/include/dot11f.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2019, 2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -26,7 +27,7 @@
*
*
* This file was automatically generated by 'framesc'
- * Wed Sep 29 13:23:21 2021 from the following file(s):
+ * Tue Jan 4 11:29:43 2022 from the following file(s):
*
* dot11f.frms
*
diff --git a/core/mac/src/sys/legacy/src/utils/src/dot11f.c b/core/mac/src/sys/legacy/src/utils/src/dot11f.c
index 55781cf9a8e0..6c210a11ecda 100644
--- a/core/mac/src/sys/legacy/src/utils/src/dot11f.c
+++ b/core/mac/src/sys/legacy/src/utils/src/dot11f.c
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2019, 2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -24,7 +25,7 @@
*
*
* This file was automatically generated by 'framesc'
- * Wed Sep 29 13:23:21 2021 from the following file(s):
+ * Tue Jan 4 11:29:43 2022 from the following file(s):
*
* dot11f.frms
*