ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf (Linux Linux)

CVE-2024-26980
HIGH 8.2

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HLinux
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1HIGH 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0626e6641f6b467447c81dd7678a69c66f7746cf < da21401372607c49972ea87a6edaafb36a17c325 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < b80ba648714e6d790d69610cf14656be222d0248 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < 3160d9734453a40db248487f8204830879c207f1 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < 0977f89722eceba165700ea384f075143f012085 ; affected 0626e6641f6b467447c81dd7678a69c66f7746cf < c119f4ede3fa90a9463f50831761c28f989bfb20
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 5.15.159 ≤ 5.15.* ; unaffected 6.1.88 ≤ 6.1.* ; unaffected 6.6.29 ≤ 6.6.* ; unaffected 6.8.8 ≤ 6.8.*

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