# CVE-2024-26980: ksmbd: fix slab-out-of-bounds in smb2\_allocate\_rsp\_buf

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.85% (percentile 56, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-05-01T05:26:56.744Z
- **Modified:** 2026-08-05T11:28:49.476Z

## Who should check

- Anyone running Linux \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< da21401372607c49972ea87a6edaafb36a17c325; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< b80ba648714e6d790d69610cf14656be222d0248; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 3160d9734453a40db248487f8204830879c207f1; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 0977f89722eceba165700ea384f075143f012085; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< c119f4ede3fa90a9463f50831761c28f989bfb20
- Anyone running Linux 5.15

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

## Affected and fixed versions

- Linux: \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< da21401372607c49972ea87a6edaafb36a17c325; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< b80ba648714e6d790d69610cf14656be222d0248; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 3160d9734453a40db248487f8204830879c207f1; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 0977f89722eceba165700ea384f075143f012085; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< c119f4ede3fa90a9463f50831761c28f989bfb20 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26980. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26980.md
Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < da21401372607c49972ea87a6edaafb36a17c325; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < b80ba648714e6d790d69610cf14656be222d0248; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3160d9734453a40db248487f8204830879c207f1; >= 0626e6641f6b467447c81dd…
Fixed in: Linux 3160d9734453a40db248487f8204830879c207f1, Linux 0977f89722eceba165700ea384f075143f012085

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26980 being exploited?

There is no confirmed exploitation: CVE-2024-26980 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26980?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-26980?

Linux \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< da21401372607c49972ea87a6edaafb36a17c325; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< b80ba648714e6d790d69610cf14656be222d0248; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 3160d9734453a40db248487f8204830879c207f1; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 0977f89722eceba165700ea384f075143f012085; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< c119f4ede3fa90a9463f50831761c28f989bfb20; Linux 5.15.

### Is there a fix for CVE-2024-26980?

Yes. Fixed in Linux 3160d9734453a40db248487f8204830879c207f1, Linux 0977f89722eceba165700ea384f075143f012085. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26980?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26980>

HTML: <https://flawdb.com/CVE-2024-26980> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26980>
