# CVE-2022-47940: An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.18 before 5.18.18.

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.57%, higher than 76% of CVEs (2026-12-01)
- Published: 2022-12-23T00:00:00.000Z
- Modified: 2026-06-17T05:14:29.343Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.18 before 5.18.18. fs/ksmbd/smb2pdu.c lacks length validation in the non-padding case in smb2_write.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: from 5.15 before 5.15.145; from 5.16 before 5.18.18

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18> (mailing-list, patch, vendor-advisory)
- <https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6> (patch, third-party-advisory)
- <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6> (mailing-list, patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/12/23/10> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2022-47940](https://www.cve.org/CVERecord?id=CVE-2022-47940), CVE Terms of Use, modified 2025-04-14
- NVD: [CVE-2022-47940](https://nvd.nist.gov/vuln/detail/CVE-2022-47940), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-47940 · Whole record: https://cve.day/CVE-2022-47940.json · Rebuilt by cve.day 2026-11-25T22:58:17.840Z
