# CVE-2026-90162: ksmbd: defer publishing granted locks to prevent UAF/double-free race

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **Published:** 2026-09-17T16:06:53.136Z
- **Modified:** 2026-10-30T13:20:44.490Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< f1371a140722c1d6868f9acf69d601de7d4142bf; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b68d4bb6b03a667c305626bd2c242fd162bac17e; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 65f54ed0289e9a57e6c60b14347ccea4c318f1fc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff6870cf3b7eccc69d03cbb6f23e3995d96e9a8d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a1d26dfb32919088e3638dca01068df3c4507433; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 29f74f0f2e6df3b393b7b66e810136d0c64e3c59
- Anyone running Linux 5.15

## Description

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

ksmbd: defer publishing granted locks to prevent UAF/double-free race

In smb2\_lock(), mid-batch granted locks are published to connection-wide
(conn-\>lock\_list) and file-wide (fp-\>lock\_list) lists immediately upon
vfs\_lock\_file() success, while also remaining tracked on the stack-local
rollback\_list.

If a subsequent element in the same SMB2\_LOCK request array fails
validation or execution, the thread jumps to out: and walks
rollback\_list to undo previously granted locks. However, because the
granted lock was already published to conn-\>lock\_list, a concurrent
UNLOCK request on the same connection can find the lock object and
kfree() it before the rollback loop executes.

When the granting thread subsequently walks rollback\_list, it
dereferences and frees the already-freed ksmbd\_lock structure, resulting
in a Use-After-Free and Double-Free (on both ksmbd\_lock and struct
file\_lock).

Fix this by deferring the publication of granted locks to
conn-\>lock\_list and fp-\>lock\_list until after the entire array of lock
elements has been processed without error. Mid-batch grants remain
tracked exclusively on the request-local rollback\_list until the whole
batch succeeds, eliminating the race window.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< f1371a140722c1d6868f9acf69d601de7d4142bf; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b68d4bb6b03a667c305626bd2c242fd162bac17e; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 65f54ed0289e9a57e6c60b14347ccea4c318f1fc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff6870cf3b7eccc69d03cbb6f23e3995d96e9a8d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a1d26dfb32919088e3638dca01068df3c4507433; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 29f74f0f2e6df3b393b7b66e810136d0c64e3c59 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 29f74f0f2e6df3b393b7b66e810136d0c64e3c59 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-90162. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90162.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < f1371a140722c1d6868f9acf69d601de7d4142bf; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < b68d4bb6b03a667c305626bd2c242fd162bac17e; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 65f54ed0289e9a57e6c60b14347ccea4c318f1fc; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 65f54ed0289e9a57e6c60b14347ccea4c318f1fc, Linux 29f74f0f2e6df3b393b7b66e810136d0c64e3c59

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-90162 being exploited?

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

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

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

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

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< f1371a140722c1d6868f9acf69d601de7d4142bf; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b68d4bb6b03a667c305626bd2c242fd162bac17e; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 65f54ed0289e9a57e6c60b14347ccea4c318f1fc; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ff6870cf3b7eccc69d03cbb6f23e3995d96e9a8d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< a1d26dfb32919088e3638dca01068df3c4507433; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 29f74f0f2e6df3b393b7b66e810136d0c64e3c59; Linux 5.15.

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

Yes. Fixed in Linux 65f54ed0289e9a57e6c60b14347ccea4c318f1fc, Linux 29f74f0f2e6df3b393b7b66e810136d0c64e3c59. Upgrade Linux to 29f74f0f2e6df3b393b7b66e810136d0c64e3c59 or later.

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

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

- other: <https://git.kernel.org/stable/c/f1371a140722c1d6868f9acf69d601de7d4142bf>
- other: <https://git.kernel.org/stable/c/b68d4bb6b03a667c305626bd2c242fd162bac17e>
- other: <https://git.kernel.org/stable/c/65f54ed0289e9a57e6c60b14347ccea4c318f1fc>
- other: <https://git.kernel.org/stable/c/ff6870cf3b7eccc69d03cbb6f23e3995d96e9a8d>
- other: <https://git.kernel.org/stable/c/a1d26dfb32919088e3638dca01068df3c4507433>
- other: <https://git.kernel.org/stable/c/29f74f0f2e6df3b393b7b66e810136d0c64e3c59>

## 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-90162>

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