# CVE-2023-54258: cifs: fix potential oops in cifs\_oplock\_break

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **Published:** 2025-12-30T12:15:52.855Z
- **Modified:** 2026-10-15T22:17:56.793Z

## Who should check

- Anyone running Linux \>= 63fb45ddc491895c4b36664e0c2c3b548545ae93, \< b99f490ea87ebcca3a429fd8837067feb56a4c7c; \>= 1bf709b9625001eefdd41048c5f4c7544ee33394, \< 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7; \>= 3b4c15171c3ce9120c81f5564b9367d8d0f4219c, \< 6b67a6d2e50634fe127e656147c81915955e9f5e; \>= da787d5b74983f7525d1eb4b9c0b4aff2821511a, \< e8f5f849ffce24490eb9449e98312b66c0dba76f; cff7fb969edaeff2bc80c8a8f7cf7b0c8df32da7; \>= 6.3.13, \< 6.4
- Anyone running Linux \>= 5.15.121, \< 5.15.128; \>= 6.1.39, \< 6.1.47; \>= 6.4.4, \< 6.4.12

## Description

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

cifs: fix potential oops in cifs\_oplock\_break

With deferred close we can have closes that race with lease breaks,
and so with the current checks for whether to send the lease response,
oplock\_response(), this can mean that an unmount (kill\_sb) can occur
just before we were checking if the tcon-\>ses is valid.  See below:

\[Fri Aug  4 04:12:50 2023\] RIP: 0010:cifs\_oplock\_break+0x1f7/0x5b0 \[cifs\]
\[Fri Aug  4 04:12:50 2023\] Code: 7d a8 48 8b 7d c0 c0 e9 02 48 89 45 b8 41 89 cf e8 3e f5 ff ff 4c 89 f7 41 83 e7 01 e8 82 b3 03 f2 49 8b 45 50 48 85 c0 74 5e \<48\> 83 78 60 00 74 57 45 84 ff 75 52 48 8b 43 98 48 83 eb 68 48 39
\[Fri Aug  4 04:12:50 2023\] RSP: 0018:ffffb30607ddbdf8 EFLAGS: 00010206
\[Fri Aug  4 04:12:50 2023\] RAX: 632d223d32612022 RBX: ffff97136944b1e0 RCX: 0000000080100009
\[Fri Aug  4 04:12:50 2023\] RDX: 0000000000000001 RSI: 0000000080100009 RDI: ffff97136944b188
\[Fri Aug  4 04:12:50 2023\] RBP: ffffb30607ddbe58 R08: 0000000000000001 R09: ffffffffc08e0900
\[Fri Aug  4 04:12:50 2023\] R10: 0000000000000001 R11: 000000000000000f R12: ffff97136944b138
\[Fri Aug  4 04:12:50 2023\] R13: ffff97149147c000 R14: ffff97136944b188 R15: 0000000000000000
\[Fri Aug  4 04:12:50 2023\] FS:  0000000000000000(0000) GS:ffff9714f7c00000(0000) knlGS:0000000000000000
\[Fri Aug  4 04:12:50 2023\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[Fri Aug  4 04:12:50 2023\] CR2: 00007fd8de9c7590 CR3: 000000011228e000 CR4: 0000000000350ef0
\[Fri Aug  4 04:12:50 2023\] Call Trace:
\[Fri Aug  4 04:12:50 2023\]  \<TASK\>
\[Fri Aug  4 04:12:50 2023\]  process\_one\_work+0x225/0x3d0
\[Fri Aug  4 04:12:50 2023\]  worker\_thread+0x4d/0x3e0
\[Fri Aug  4 04:12:50 2023\]  ? process\_one\_work+0x3d0/0x3d0
\[Fri Aug  4 04:12:50 2023\]  kthread+0x12a/0x150
\[Fri Aug  4 04:12:50 2023\]  ? set\_kthread\_struct+0x50/0x50
\[Fri Aug  4 04:12:50 2023\]  ret\_from\_fork+0x22/0x30
\[Fri Aug  4 04:12:50 2023\]  \</TASK\>

To fix this change the ordering of the checks before sending the oplock\_response
to first check if the openFileList is empty.

## Affected and fixed versions

- Linux: \>= 63fb45ddc491895c4b36664e0c2c3b548545ae93, \< b99f490ea87ebcca3a429fd8837067feb56a4c7c; \>= 1bf709b9625001eefdd41048c5f4c7544ee33394, \< 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7; \>= 3b4c15171c3ce9120c81f5564b9367d8d0f4219c, \< 6b67a6d2e50634fe127e656147c81915955e9f5e; \>= da787d5b74983f7525d1eb4b9c0b4aff2821511a, \< e8f5f849ffce24490eb9449e98312b66c0dba76f; cff7fb969edaeff2bc80c8a8f7cf7b0c8df32da7; \>= 6.3.13, \< 6.4 (cvelist)
- Linux: \>= 5.15.121, \< 5.15.128; \>= 6.1.39, \< 6.1.47; \>= 6.4.4, \< 6.4.12 (cvelist)

## Mitigation

- Upgrade Linux to 6.4 or later.
- Upgrade Linux to 6.4.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54258.md
Affected: Linux >= 63fb45ddc491895c4b36664e0c2c3b548545ae93, < b99f490ea87ebcca3a429fd8837067feb56a4c7c; >= 1bf709b9625001eefdd41048c5f4c7544ee33394, < 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7; >= 3b4c15171c3ce9120c81f5564b9367d8d0f4219c, < 6b67a6d2e50634fe127e656147c81915955e9f5e; >= da787d5b74983f7525d1eb4…
Fixed in: Linux 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7, Linux 6b67a6d2e50634fe127e656147c81915955e9f5e, Linux 6.4, Linux 5.15.128, Linux 6.1.47, Linux 6.4.12

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-2023-54258 being exploited?

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

### How serious is CVE-2023-54258?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-54258?

Linux \>= 63fb45ddc491895c4b36664e0c2c3b548545ae93, \< b99f490ea87ebcca3a429fd8837067feb56a4c7c; \>= 1bf709b9625001eefdd41048c5f4c7544ee33394, \< 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7; \>= 3b4c15171c3ce9120c81f5564b9367d8d0f4219c, \< 6b67a6d2e50634fe127e656147c81915955e9f5e; \>= da787d5b74983f7525d1eb4b9c0b4aff2821511a, \< e8f5f849ffce24490eb9449e98312b66c0dba76f; cff7fb969edaeff2bc80c8a8f7cf7b0c8df32da7; \>= 6.3.13, \< 6.4; Linux \>= 5.15.121, \< 5.15.128; \>= 6.1.39, \< 6.1.47; \>= 6.4.4, \< 6.4.12.

### Is there a fix for CVE-2023-54258?

Yes. Fixed in Linux 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7, Linux 6b67a6d2e50634fe127e656147c81915955e9f5e, Linux 6.4, Linux 5.15.128, Linux 6.1.47, Linux 6.4.12. Upgrade Linux to 6.4 or later. Upgrade Linux to 6.4.12 or later.

### How do I check if I'm affected by CVE-2023-54258?

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/b99f490ea87ebcca3a429fd8837067feb56a4c7c>
- other: <https://git.kernel.org/stable/c/5ee28bcfbaacf289eb25c662a2862542ea6ce6a7>
- other: <https://git.kernel.org/stable/c/6b67a6d2e50634fe127e656147c81915955e9f5e>
- other: <https://git.kernel.org/stable/c/e8f5f849ffce24490eb9449e98312b66c0dba76f>

## 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-2023-54258>

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