# CVE-2023-52509: ravb: Fix use-after-free issue in ravb\_tx\_timeout\_work()

> 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, CNA) `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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-03-02T21:52:22.006Z
- **Modified:** 2026-08-05T09:10:18.221Z

## Who should check

- Anyone running Linux \>= c156633f1353264634135dea86ffcae74f2122fc, \< 65d34cfd4e347054eb4193bc95d9da7eaa72dee5; \>= c156633f1353264634135dea86ffcae74f2122fc, \< db9aafa19547833240f58c2998aed7baf414dc82; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 616761cf9df9af838c0a1a1232a69322a9eb67e6; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 6f6fa8061f756aedb93af12a8a5d3cf659127965; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 105abd68ad8f781985113aee2e92e0702b133705; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 3971442870713de527684398416970cf025b4f89
- Anyone running Linux 4.2

## Description

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

ravb: Fix use-after-free issue in ravb\_tx\_timeout\_work()

The ravb\_stop() should call cancel\_work\_sync(). Otherwise,
ravb\_tx\_timeout\_work() is possible to use the freed priv after
ravb\_remove() was called like below:

CPU0			CPU1
			ravb\_tx\_timeout()
ravb\_remove()
unregister\_netdev()
free\_netdev(ndev)
// free priv
			ravb\_tx\_timeout\_work()
			// use priv

unregister\_netdev() will call .ndo\_stop() so that ravb\_stop() is
called. And, after phy\_stop() is called, netif\_carrier\_off()
is also called. So that .ndo\_tx\_timeout() will not be called
after phy\_stop().

## Affected and fixed versions

- Linux: \>= c156633f1353264634135dea86ffcae74f2122fc, \< 65d34cfd4e347054eb4193bc95d9da7eaa72dee5; \>= c156633f1353264634135dea86ffcae74f2122fc, \< db9aafa19547833240f58c2998aed7baf414dc82; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 616761cf9df9af838c0a1a1232a69322a9eb67e6; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 6f6fa8061f756aedb93af12a8a5d3cf659127965; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 105abd68ad8f781985113aee2e92e0702b133705; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 3971442870713de527684398416970cf025b4f89 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-52509.md
Affected: Linux >= c156633f1353264634135dea86ffcae74f2122fc, < 65d34cfd4e347054eb4193bc95d9da7eaa72dee5; >= c156633f1353264634135dea86ffcae74f2122fc, < db9aafa19547833240f58c2998aed7baf414dc82; >= c156633f1353264634135dea86ffcae74f2122fc, < 616761cf9df9af838c0a1a1232a69322a9eb67e6; >= c156633f1353264634135de…
Fixed in: Linux 65d34cfd4e347054eb4193bc95d9da7eaa72dee5, Linux 616761cf9df9af838c0a1a1232a69322a9eb67e6, Linux 6f6fa8061f756aedb93af12a8a5d3cf659127965, Linux 105abd68ad8f781985113aee2e92e0702b133705, Linux 3971442870713de527684398416970cf025b4f89

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

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

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

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

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

Linux \>= c156633f1353264634135dea86ffcae74f2122fc, \< 65d34cfd4e347054eb4193bc95d9da7eaa72dee5; \>= c156633f1353264634135dea86ffcae74f2122fc, \< db9aafa19547833240f58c2998aed7baf414dc82; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 616761cf9df9af838c0a1a1232a69322a9eb67e6; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 6f6fa8061f756aedb93af12a8a5d3cf659127965; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 105abd68ad8f781985113aee2e92e0702b133705; \>= c156633f1353264634135dea86ffcae74f2122fc, \< 3971442870713de527684398416970cf025b4f89; Linux 4.2.

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

Yes. Fixed in Linux 65d34cfd4e347054eb4193bc95d9da7eaa72dee5, Linux 616761cf9df9af838c0a1a1232a69322a9eb67e6, Linux 6f6fa8061f756aedb93af12a8a5d3cf659127965, Linux 105abd68ad8f781985113aee2e92e0702b133705, Linux 3971442870713de527684398416970cf025b4f89. Upgrade Linux to 3971442870713de527684398416970cf025b4f89 or later.

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

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/65d34cfd4e347054eb4193bc95d9da7eaa72dee5>
- patch: <https://git.kernel.org/stable/c/db9aafa19547833240f58c2998aed7baf414dc82>
- patch: <https://git.kernel.org/stable/c/616761cf9df9af838c0a1a1232a69322a9eb67e6>
- patch: <https://git.kernel.org/stable/c/6f6fa8061f756aedb93af12a8a5d3cf659127965>
- patch: <https://git.kernel.org/stable/c/105abd68ad8f781985113aee2e92e0702b133705>
- patch: <https://git.kernel.org/stable/c/3971442870713de527684398416970cf025b4f89>

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

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