# CVE-2023-52836: locking/ww\_mutex/test: Fix potential workqueue corruption

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-21T15:31:37.174Z
- **Modified:** 2026-06-17T06:43:41.710Z

## Who should check

- Anyone running Linux \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d4d37c9e6a4dbcca958dabd99216550525c7e389; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d8267cabbe1bed15ccf8b0e684c528bf8eeef715; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< dcd85e3c929368076a7592b27f541e0da8b427f5; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 9ed2d68b3925145f5f51c46559484881d6082f75; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e89d0ed45a419c485bae999426ecf92697cbdda3; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< c56df79d68677cf062da1b6e3b33e74299a92dfc; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e36407713163363e65566e7af0abe207d5f59a0c; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 304a2c4aad0fff887ce493e4197bf9cbaf394479; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< bccdd808902f8c677317cec47c306e42b93b849e
- Anyone running Linux 4.11

## Description

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

locking/ww\_mutex/test: Fix potential workqueue corruption

In some cases running with the test-ww\_mutex code, I was seeing
odd behavior where sometimes it seemed flush\_workqueue was
returning before all the work threads were finished.

Often this would cause strange crashes as the mutexes would be
freed while they were being used.

Looking at the code, there is a lifetime problem as the
controlling thread that spawns the work allocates the
"struct stress" structures that are passed to the workqueue
threads. Then when the workqueue threads are finished,
they free the stress struct that was passed to them.

Unfortunately the workqueue work\_struct node is in the stress
struct. Which means the work\_struct is freed before the work
thread returns and while flush\_workqueue is waiting.

It seems like a better idea to have the controlling thread
both allocate and free the stress structures, so that we can
be sure we don't corrupt the workqueue by freeing the structure
prematurely.

So this patch reworks the test to do so, and with this change
I no longer see the early flush\_workqueue returns.

## Affected and fixed versions

- Linux: \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d4d37c9e6a4dbcca958dabd99216550525c7e389; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d8267cabbe1bed15ccf8b0e684c528bf8eeef715; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< dcd85e3c929368076a7592b27f541e0da8b427f5; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 9ed2d68b3925145f5f51c46559484881d6082f75; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e89d0ed45a419c485bae999426ecf92697cbdda3; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< c56df79d68677cf062da1b6e3b33e74299a92dfc; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e36407713163363e65566e7af0abe207d5f59a0c; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 304a2c4aad0fff887ce493e4197bf9cbaf394479; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< bccdd808902f8c677317cec47c306e42b93b849e (cvelist)
- Linux: 4.11 (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-2023-52836. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52836.md
Affected: Linux >= 2a0c11282881875dc44f166a20eedf0d866dd0ef, < d4d37c9e6a4dbcca958dabd99216550525c7e389; >= 2a0c11282881875dc44f166a20eedf0d866dd0ef, < d8267cabbe1bed15ccf8b0e684c528bf8eeef715; >= 2a0c11282881875dc44f166a20eedf0d866dd0ef, < dcd85e3c929368076a7592b27f541e0da8b427f5; >= 2a0c11282881875dc44f166…
Fixed in: Linux 9ed2d68b3925145f5f51c46559484881d6082f75, Linux 304a2c4aad0fff887ce493e4197bf9cbaf394479

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

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

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

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

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

Linux \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d4d37c9e6a4dbcca958dabd99216550525c7e389; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< d8267cabbe1bed15ccf8b0e684c528bf8eeef715; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< dcd85e3c929368076a7592b27f541e0da8b427f5; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 9ed2d68b3925145f5f51c46559484881d6082f75; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e89d0ed45a419c485bae999426ecf92697cbdda3; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< c56df79d68677cf062da1b6e3b33e74299a92dfc; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< e36407713163363e65566e7af0abe207d5f59a0c; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< 304a2c4aad0fff887ce493e4197bf9cbaf394479; \>= 2a0c11282881875dc44f166a20eedf0d866dd0ef, \< bccdd808902f8c677317cec47c306e42b93b849e; Linux 4.11.

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

Yes. Fixed in Linux 9ed2d68b3925145f5f51c46559484881d6082f75, Linux 304a2c4aad0fff887ce493e4197bf9cbaf394479. No fix listed yet: follow the vendor advisory.

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

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/d4d37c9e6a4dbcca958dabd99216550525c7e389>
- patch: <https://git.kernel.org/stable/c/d8267cabbe1bed15ccf8b0e684c528bf8eeef715>
- patch: <https://git.kernel.org/stable/c/dcd85e3c929368076a7592b27f541e0da8b427f5>
- patch: <https://git.kernel.org/stable/c/9ed2d68b3925145f5f51c46559484881d6082f75>
- patch: <https://git.kernel.org/stable/c/e89d0ed45a419c485bae999426ecf92697cbdda3>
- patch: <https://git.kernel.org/stable/c/c56df79d68677cf062da1b6e3b33e74299a92dfc>
- patch: <https://git.kernel.org/stable/c/e36407713163363e65566e7af0abe207d5f59a0c>
- patch: <https://git.kernel.org/stable/c/304a2c4aad0fff887ce493e4197bf9cbaf394479>
- patch: <https://git.kernel.org/stable/c/bccdd808902f8c677317cec47c306e42b93b849e>

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

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