# CVE-2026-23220: ksmbd: fix infinite loop caused by next\_smb2\_rcv\_hdr\_off reset in error paths

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2026-02-18T14:53:23.376Z
- **Modified:** 2026-06-17T10:21:07.580Z

## Who should check

- Anyone running Linux \>= 4b9b7ea1ffb1e34f01fa5726d0c184931b9ba565, \< 544adb0a6658ea1bff4064723761dbf05f95b1e2; \>= 943cebf9ea3415ddefcd670d24d8883e97ba3d60, \< fb3b66bd72deb5543addaefa67963b34fb163a7b; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< f7b1c2f5642bbd60b1beef1f3298cbac81eb232c; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 71b5e7c528315ca360a1825a4ad2f8ae48c5dc16; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 9135e791ec2709bcf0cda0335535c74762489498; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 010eb01ce23b34b50531448b0da391c7f05a72af; \>= 5.15.145, \< 5.15.203; \>= 6.1.71, \< 6.1.164
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix infinite loop caused by next\_smb2\_rcv\_hdr\_off reset in error paths

The problem occurs when a signed request fails smb2 signature verification
check. In \_\_process\_request(), if check\_sign\_req() returns an error,
set\_smb2\_rsp\_status(work, STATUS\_ACCESS\_DENIED) is called.
set\_smb2\_rsp\_status() set work-\>next\_smb2\_rcv\_hdr\_off as zero. By resetting
next\_smb2\_rcv\_hdr\_off to zero, the pointer to the next command in the chain
is lost. Consequently, is\_chained\_smb2\_message() continues to point to
the same request header instead of advancing. If the header's NextCommand
field is non-zero, the function returns true, causing \_\_handle\_ksmbd\_work()
to repeatedly process the same failed request in an infinite loop.
This results in the kernel log being flooded with "bad smb2 signature"
messages and high CPU usage.

This patch fixes the issue by changing the return value from
SERVER\_HANDLER\_CONTINUE to SERVER\_HANDLER\_ABORT. This ensures that
the processing loop terminates immediately rather than attempting to
continue from an invalidated offset.

## Affected and fixed versions

- Linux: \>= 4b9b7ea1ffb1e34f01fa5726d0c184931b9ba565, \< 544adb0a6658ea1bff4064723761dbf05f95b1e2; \>= 943cebf9ea3415ddefcd670d24d8883e97ba3d60, \< fb3b66bd72deb5543addaefa67963b34fb163a7b; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< f7b1c2f5642bbd60b1beef1f3298cbac81eb232c; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 71b5e7c528315ca360a1825a4ad2f8ae48c5dc16; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 9135e791ec2709bcf0cda0335535c74762489498; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 010eb01ce23b34b50531448b0da391c7f05a72af; \>= 5.15.145, \< 5.15.203; \>= 6.1.71, \< 6.1.164 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.164 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23220.md
Affected: Linux >= 4b9b7ea1ffb1e34f01fa5726d0c184931b9ba565, < 544adb0a6658ea1bff4064723761dbf05f95b1e2; >= 943cebf9ea3415ddefcd670d24d8883e97ba3d60, < fb3b66bd72deb5543addaefa67963b34fb163a7b; >= be0f89d4419dc5413a1cf06db3671c9949be0d52, < 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8; >= be0f89d4419dc5413a1cf06…
Fixed in: Linux 544adb0a6658ea1bff4064723761dbf05f95b1e2, Linux 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8, Linux 71b5e7c528315ca360a1825a4ad2f8ae48c5dc16, Linux 9135e791ec2709bcf0cda0335535c74762489498, Linux 010eb01ce23b34b50531448b0da391c7f05a72af, Linux 5.15.203, Linux 6.1.164

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-2026-23220 being exploited?

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

### How serious is CVE-2026-23220?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23220?

Linux \>= 4b9b7ea1ffb1e34f01fa5726d0c184931b9ba565, \< 544adb0a6658ea1bff4064723761dbf05f95b1e2; \>= 943cebf9ea3415ddefcd670d24d8883e97ba3d60, \< fb3b66bd72deb5543addaefa67963b34fb163a7b; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< f7b1c2f5642bbd60b1beef1f3298cbac81eb232c; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 71b5e7c528315ca360a1825a4ad2f8ae48c5dc16; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 9135e791ec2709bcf0cda0335535c74762489498; \>= be0f89d4419dc5413a1cf06db3671c9949be0d52, \< 010eb01ce23b34b50531448b0da391c7f05a72af; \>= 5.15.145, \< 5.15.203; \>= 6.1.71, \< 6.1.164; Linux 6.6.

### Is there a fix for CVE-2026-23220?

Yes. Fixed in Linux 544adb0a6658ea1bff4064723761dbf05f95b1e2, Linux 5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8, Linux 71b5e7c528315ca360a1825a4ad2f8ae48c5dc16, Linux 9135e791ec2709bcf0cda0335535c74762489498, Linux 010eb01ce23b34b50531448b0da391c7f05a72af, Linux 5.15.203, Linux 6.1.164. Upgrade Linux to 6.1.164 or later.

### How do I check if I'm affected by CVE-2026-23220?

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/fb3b66bd72deb5543addaefa67963b34fb163a7b>
- patch: <https://git.kernel.org/stable/c/5accdc5b7f28a81bbc5880ac0b8886e60c86e8c8>
- patch: <https://git.kernel.org/stable/c/f7b1c2f5642bbd60b1beef1f3298cbac81eb232c>
- patch: <https://git.kernel.org/stable/c/71b5e7c528315ca360a1825a4ad2f8ae48c5dc16>
- patch: <https://git.kernel.org/stable/c/9135e791ec2709bcf0cda0335535c74762489498>
- patch: <https://git.kernel.org/stable/c/010eb01ce23b34b50531448b0da391c7f05a72af>
- other: <https://git.kernel.org/stable/c/544adb0a6658ea1bff4064723761dbf05f95b1e2>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>

## 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-2026-23220>

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