{"api_version":"1","generated_at":"2026-04-23T05:15:29+00:00","cve":"CVE-2022-47940","urls":{"html":"https://cve.report/CVE-2022-47940","api":"https://cve.report/api/cve/CVE-2022-47940.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-47940","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-47940"},"summary":{"title":"CVE-2022-47940","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-12-23 16:15:00","updated_at":"2022-12-30 15:52:00"},"problem_types":["CWE-125"],"metrics":[],"references":[{"url":"https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6","name":"https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6","refsource":"MISC","tags":[],"title":"ksmbd: validate length in smb2_write() · torvalds/linux@158a66b · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18","name":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18","refsource":"MISC","tags":[],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6","name":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6","refsource":"MISC","tags":[],"title":"kernel/git/torvalds/linux.git - Linux kernel source tree","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2022/12/23/10","name":"[oss-security] 20221223 Re: Details on this supposed Linux Kernel ksmbd RCE","refsource":"MLIST","tags":[],"title":"oss-security - Re: Details on this supposed Linux Kernel ksmbd RCE","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-47940","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-47940","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"47940","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-47940","qid":"183937","title":"Debian Security Update for linux (CVE-2022-47940)"},{"cve":"CVE-2022-47940","qid":"199159","title":"Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-5851-1)"},{"cve":"CVE-2022-47940","qid":"199160","title":"Ubuntu Security Notification for Linux kernel (GKE) Vulnerabilities (USN-5860-1)"},{"cve":"CVE-2022-47940","qid":"199177","title":"Ubuntu Security Notification for Linux kernel Vulnerabilities (USN-5876-1)"},{"cve":"CVE-2022-47940","qid":"199179","title":"Ubuntu Security Notification for Linux kernel (GKE) Vulnerabilities (USN-5877-1)"},{"cve":"CVE-2022-47940","qid":"904768","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (12095)"},{"cve":"CVE-2022-47940","qid":"904997","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.72.1-1.cm2 (12530)"},{"cve":"CVE-2022-47940","qid":"905002","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.86.1-1.cm2 (12559)"},{"cve":"CVE-2022-47940","qid":"905024","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.77.1-1.cm2 (12540)"},{"cve":"CVE-2022-47940","qid":"905051","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.80.1-1.cm2 (12547)"},{"cve":"CVE-2022-47940","qid":"905090","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.48.1-4.cm2 (12527)"},{"cve":"CVE-2022-47940","qid":"905091","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for hyperv-daemons (12498)"},{"cve":"CVE-2022-47940","qid":"905117","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.81.1-1.cm2 (12551)"},{"cve":"CVE-2022-47940","qid":"905125","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.74.1-1.cm2 (12536)"},{"cve":"CVE-2022-47940","qid":"905126","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.85.1-1.cm2 (12558)"},{"cve":"CVE-2022-47940","qid":"905146","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.79.1-1.cm2 (12544)"},{"cve":"CVE-2022-47940","qid":"905171","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for livepatch-5.15.82.1-1.cm2 (12555)"},{"cve":"CVE-2022-47940","qid":"905234","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for hyperv-daemons (12931)"},{"cve":"CVE-2022-47940","qid":"905546","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for hyperv-daemons (12931-1)"},{"cve":"CVE-2022-47940","qid":"906445","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (12095-2)"},{"cve":"CVE-2022-47940","qid":"906656","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kernel (12095-4)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-47940","ASSIGNER":"cve@mitre.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"references":{"reference_data":[{"url":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18","refsource":"MISC","name":"https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.18.18"},{"url":"https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6","refsource":"MISC","name":"https://github.com/torvalds/linux/commit/158a66b245739e15858de42c0ba60fcf3de9b8e6"},{"url":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6","refsource":"MISC","name":"https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=158a66b245739e15858de42c0ba60fcf3de9b8e6"},{"url":"http://www.openwall.com/lists/oss-security/2022/12/23/10","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2022/12/23/10"}]}},"nvd":{"publishedDate":"2022-12-23 16:15:00","lastModifiedDate":"2022-12-30 15:52:00","problem_types":["CWE-125"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.18.8","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}