CVE-2022-40540
Buffer copy without checking the size of input in Linux Kernel
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.4
Buffer copy without checking the size of input in Linux Kernel
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
- Record
CVE-2022-40540- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
EUVDEUVD-2022-43815
8.4
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
- Record
EUVD-2022-43815- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-58jw-58x8-342p
7.8
Memory corruption due to buffer copy without checking the size of input while loading firmware in...
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
- Record
GHSA-58jw-58x8-342p- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
NVD
8.4
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
- Record
CVE-2022-40540- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-120
- Updated
- 2026-11-02
Affected products
- qualcomm sd888 5g firmware
- qualcomm sd 8 gen1 5g firmware
- qualcomm sw5100 firmware
- qualcomm sw5100p firmware
- qualcomm wcd9380 firmware
- qualcomm wcd9385 firmware
- qualcomm wcn3980 firmware
- qualcomm wcn3988 firmware
- qualcomm wcn6850 firmware
- qualcomm wcn6851 firmware
- qualcomm wcn6855 firmware
- qualcomm wcn6856 firmware
Affected packages
| Package | Affected | Fixed |
|---|---|---|
:linux_kernel:QualcommAndroid |
SoCVersion:0 up to SoCVersion:2023-03-05, plus listed versions SoCVersion |
SoCVersion:2023-03-05 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-40540 is a high vulnerability (CVSS 8.4) in Qualcomm Sd888 5g Firmware, published March 1, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.17%, the 5th percentile. Fixed in :linux_kernel:Qualcomm SoCVersion:2023-03-05.
References
qualcomm.com/company/product-security/bulletins/march-2023-bulletin
security.netapp.com/advisory/ntap-20230616-0001
bugzilla.suse.com/show_bug.cgi?id=1209597
nvd.nist.gov/vuln/detail/CVE-2022-40540
github.com/advisories/GHSA-58jw-58x8-342p
source.android.com/security/bulletin/2023-03-01
git.codelinaro.org/clo/la/kernel/msm-5.10/-/commit/dae3214cd3495e5c4b37537cacf665d2cdeaea24