# CVE-2024-26980: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-05-01T05:26:56.744Z
- Modified: 2026-08-05T11:28:49.476Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before da21401372607c49972ea87a6edaafb36a17c325; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b80ba648714e6d790d69610cf14656be222d0248; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3160d9734453a40db248487f8204830879c207f1; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 0977f89722eceba165700ea384f075143f012085; from 0626e6641f6b467447c81dd7678a69c66f7746cf before c119f4ede3fa90a9463f50831761c28f989bfb20; 5.15 (not affected: before 5.15; from 5.15.159 up to 5.15.*; from 6.1.88 up to 6.1.*; from 6.6.29 up to 6.6.*; from 6.8.8 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.15 before 5.15.159; from 5.16 before 6.1.88; from 6.2 before 6.6.29; from 6.7 before 6.8.8; 6.9

## Every score

- Linux: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/da21401372607c49972ea87a6edaafb36a17c325> (patch)
- <https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248> (patch)
- <https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1> (patch)
- <https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085> (patch)
- <https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Sources

- CVE List: [CVE-2024-26980](https://www.cve.org/CVERecord?id=CVE-2024-26980), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26980](https://nvd.nist.gov/vuln/detail/CVE-2024-26980), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26980 · Whole record: https://cve.day/CVE-2024-26980.json · Rebuilt by cve.day 2026-11-25T22:58:39.750Z
