# CVE-2023-53188: net: openvswitch: fix race on port output

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-15T14:04:52.248Z
- **Modified:** 2026-11-05T21:17:18.250Z

## Who should check

- Anyone running Linux \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 9b0dd09c1ceb35950d2884848099fccc9ec9a123; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 284be5db6c8d06d247ed056cfc448c4f79bbb16c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 5efcb301523baacd98a47553d4996e924923114d; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 644b3051b06ba465bc7401bfae9b14963cbc8c1c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 56252da41426f3d01957456f13caf46ce670ea29; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8
- Anyone running Linux 4.3

## Description

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

net: openvswitch: fix race on port output

assume the following setup on a single machine:
1. An openvswitch instance with one bridge and default flows
2. two network namespaces "server" and "client"
3. two ovs interfaces "server" and "client" on the bridge
4. for each ovs interface a veth pair with a matching name and 32 rx and
   tx queues
5. move the ends of the veth pairs to the respective network namespaces
6. assign ip addresses to each of the veth ends in the namespaces (needs
   to be the same subnet)
7. start some http server on the server network namespace
8. test if a client in the client namespace can reach the http server

when following the actions below the host has a chance of getting a cpu
stuck in a infinite loop:
1. send a large amount of parallel requests to the http server (around
   3000 curls should work)
2. in parallel delete the network namespace (do not delete interfaces or
   stop the server, just kill the namespace)

there is a low chance that this will cause the below kernel cpu stuck
message. If this does not happen just retry.
Below there is also the output of bpftrace for the functions mentioned
in the output.

The series of events happening here is:
1. the network namespace is deleted calling
   \`unregister\_netdevice\_many\_notify\` somewhere in the process
2. this sets first \`NETREG\_UNREGISTERING\` on both ends of the veth and
   then runs \`synchronize\_net\`
3. it then calls \`call\_netdevice\_notifiers\` with \`NETDEV\_UNREGISTER\`
4. this is then handled by \`dp\_device\_event\` which calls
   \`ovs\_netdev\_detach\_dev\` (if a vport is found, which is the case for
   the veth interface attached to ovs)
5. this removes the rx\_handlers of the device but does not prevent
   packages to be sent to the device
6. \`dp\_device\_event\` then queues the vport deletion to work in
   background as a ovs\_lock is needed that we do not hold in the
   unregistration path
7. \`unregister\_netdevice\_many\_notify\` continues to call
   \`netdev\_unregister\_kobject\` which sets \`real\_num\_tx\_queues\` to 0
8. port deletion continues (but details are not relevant for this issue)
9. at some future point the background task deletes the vport

If after 7. but before 9. a packet is send to the ovs vport (which is
not deleted at this point in time) which forwards it to the
\`dev\_queue\_xmit\` flow even though the device is unregistering.
In \`skb\_tx\_hash\` (which is called in the \`dev\_queue\_xmit\`) path there is
a while loop (if the packet has a rx\_queue recorded) that is infinite if
\`dev-\>real\_num\_tx\_queues\` is zero.

To prevent this from happening we update \`do\_output\` to handle devices
without carrier the same as if the device is not found (which would
be the code path after 9. is done).

Additionally we now produce a warning in \`skb\_tx\_hash\` if we will hit
the infinite loop.

bpftrace (first word is function name):

\_\_dev\_queue\_xmit server: real\_num\_tx\_queues: 1, cpu: 2, pid: 28024, tid: 28024, skb\_addr: 0xffff9edb6f207000, reg\_state: 1
netdev\_core\_pick\_tx server: addr: 0xffff9f0a46d4a000 real\_num\_tx\_queues: 1, cpu: 2, pid: 28024, tid: 28024, skb\_addr: 0xffff9edb6f207000, reg\_state: 1
dp\_device\_event server: real\_num\_tx\_queues: 1 cpu 9, pid: 21024, tid: 21024, event 2, reg\_state: 1
synchronize\_rcu\_expedited: cpu 9, pid: 21024, tid: 21024
synchronize\_rcu\_expedited: cpu 9, pid: 21024, tid: 21024
synchronize\_rcu\_expedited: cpu 9, pid: 21024, tid: 21024
synchronize\_rcu\_expedited: cpu 9, pid: 21024, tid: 21024
dp\_device\_event server: real\_num\_tx\_queues: 1 cpu 9, pid: 21024, tid: 21024, event 6, reg\_state: 2
ovs\_netdev\_detach\_dev server: real\_num\_tx\_queues: 1 cpu 9, pid: 21024, tid: 21024, reg\_state: 2
netdev\_rx\_handler\_unregister server: real\_num\_tx\_queues: 1, cpu: 9, pid: 21024, tid: 21024, reg\_state: 2
synchronize\_rcu\_expedited: cpu 9, pid: 21024, tid: 21024
netdev\_rx\_handler\_unregister ret server: real\_num\_tx\_queues: 1, cpu: 9, pid: 21024, tid: 21024, reg\_state: 2
dp\_
---truncated---

## Affected and fixed versions

- Linux: \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 9b0dd09c1ceb35950d2884848099fccc9ec9a123; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 284be5db6c8d06d247ed056cfc448c4f79bbb16c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 5efcb301523baacd98a47553d4996e924923114d; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 644b3051b06ba465bc7401bfae9b14963cbc8c1c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 56252da41426f3d01957456f13caf46ce670ea29; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8 (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53188.md
Affected: Linux >= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, < 9b0dd09c1ceb35950d2884848099fccc9ec9a123; >= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, < 284be5db6c8d06d247ed056cfc448c4f79bbb16c; >= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, < 5efcb301523baacd98a47553d4996e924923114d; >= 7f8a436eaa2c3ddd8e1ff2f…
Fixed in: Linux 9b0dd09c1ceb35950d2884848099fccc9ec9a123, Linux 284be5db6c8d06d247ed056cfc448c4f79bbb16c, Linux 5efcb301523baacd98a47553d4996e924923114d, Linux 644b3051b06ba465bc7401bfae9b14963cbc8c1c, Linux 56252da41426f3d01957456f13caf46ce670ea29, Linux 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 9b0dd09c1ceb35950d2884848099fccc9ec9a123; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 284be5db6c8d06d247ed056cfc448c4f79bbb16c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 5efcb301523baacd98a47553d4996e924923114d; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 644b3051b06ba465bc7401bfae9b14963cbc8c1c; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 56252da41426f3d01957456f13caf46ce670ea29; \>= 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536, \< 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8; Linux 4.3.

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

Yes. Fixed in Linux 9b0dd09c1ceb35950d2884848099fccc9ec9a123, Linux 284be5db6c8d06d247ed056cfc448c4f79bbb16c, Linux 5efcb301523baacd98a47553d4996e924923114d, Linux 644b3051b06ba465bc7401bfae9b14963cbc8c1c, Linux 56252da41426f3d01957456f13caf46ce670ea29, Linux 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8. Upgrade Linux to 066b86787fa3d97b7aefb5ac0a99a22dad2d15f8 or later.

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

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/9b0dd09c1ceb35950d2884848099fccc9ec9a123>
- patch: <https://git.kernel.org/stable/c/284be5db6c8d06d247ed056cfc448c4f79bbb16c>
- patch: <https://git.kernel.org/stable/c/5efcb301523baacd98a47553d4996e924923114d>
- patch: <https://git.kernel.org/stable/c/644b3051b06ba465bc7401bfae9b14963cbc8c1c>
- patch: <https://git.kernel.org/stable/c/56252da41426f3d01957456f13caf46ce670ea29>
- patch: <https://git.kernel.org/stable/c/066b86787fa3d97b7aefb5ac0a99a22dad2d15f8>

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

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