ksmbd: fix out of bounds in init_smb2_rsp_hdr() (Linux Linux)

CVE-2023-52441
CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 0.68 % · percentile 52 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out of bounds in init_smb2_rsp_hdr() If client send smb2 negotiate request and then send smb1 negotiate request, init_smb2_rsp_hdr is called for smb1 negotiate request since need_neg is set to false. This patch ignore smb1 packets after ->need_neg is set to false.

Weaknesses (CWE)

  • CWE-119 — Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 51a8534c0f35c0401e45f1055f914729cad98bf9 < 5c0df9d30c289d6b9d7d44e2a450de2f8e3cf40b ; affected 0b3ec5671ac06829ccebdaeec05acedfec327f42 < 330d900620dfc9893011d725b3620cd2ee0bc2bc ; affected 39b291b86b5988bf8753c3874d5c773399d09b96 < aa669ef229ae8dd779da9caa24e254964545895f ; affected 39b291b86b5988bf8753c3874d5c773399d09b96 < 536bb492d39bb6c080c92f31e8a55fe9934f452b ; affected cc32cd98a0aee4cc3eb611cbce11795b1aaa738a ; affected 5.15.105 < 5.15.145
Linux · Linuxaffected 6.3 ; unaffected 0 < 6.3 ; unaffected 5.15.145 ≤ 5.15.* ; unaffected 6.1.53 ≤ 6.1.* ; unaffected 6.4.16 ≤ 6.4.* ; unaffected 6.5 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD