# CVE-2023-5366: Openvswitch don't match packets on nd_target field

> A flaw in Open vSwitch allows local attackers to bypass OpenFlow rules and redirect ICMPv6 traffic by spoofing target IP addresses.

- **Severity:** High 7.1 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 6 Oct 2023
- **Updated:** 13 Feb 2025
- **Also known as:** AZL-31280, AZL-35087, DEBIAN-CVE-2023-5366, DLA-3734-1, GHSA-f89w-2cg8-8h78, OESA-2023-1732, RHBA-2024:1226, RHBA-2024:1228, SUSE-SU-2023:4508-1, SUSE-SU-2023:4571-1, SUSE-SU-2023:4573-1, SUSE-SU-2023:4657-1, SUSE-SU-2023:4661-1, SUSE-SU-2023:4666-1, SUSE-SU-2023:4714-1, UBUNTU-CVE-2023-5366, USN-6514-1, openSUSE-SU-2024:13657-1

## What is CVE-2023-5366?

CVE-2023-5366 is a high-severity vulnerability in Redhat Enterprise Linux, published on 6 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A flaw was found in Open vSwitch that allows ICMPv6 Neighbor Advertisement packets between virtual machines to bypass OpenFlow rules. This issue may allow a local attacker to create specially crafted packets with a modified or spoofed target IP address field that can redirect ICMPv6 traffic to arbitrary IP addresses.

Weakness: CWE-345 (Insufficient Verification of Data Authenticity)

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

It affects 5 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openvswitch2.17` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch2.17-debuginfo` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch2.17-debugsource` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch2.17-devel` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch2.17-ipsec` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch2.17-test` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `openvswitch3.2` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch3.2-debuginfo` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch3.2-debugsource` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch3.2-devel` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch3.2-ipsec` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch3.2-test` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `python3-openvswitch2.17` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `python3-openvswitch2.17-debuginfo` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-131.el9fdp |
| `python3-openvswitch3.2` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `python3-openvswitch3.2-debuginfo` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:3.2.0-56.el9fdp |
| `openvswitch` | SUSE:Enterprise Storage 7.1 | All versions | 2.14.2-150300.19.11.1 |
| `openvswitch` | SUSE:Enterprise Storage 7.1 | All versions | 2.14.2-150300.19.14.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.13.2-150200.9.25.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.13.2-150200.9.28.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.14.2-150300.19.11.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 2.14.2-150300.19.14.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.14.2-150300.19.11.1 |
| `openvswitch` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.14.2-150300.19.14.1 |
| `openvswitch` | SUSE:Linux Enterprise Module for Legacy 15 SP5 | All versions | 2.14.2-150400.24.14.2 |
| `openvswitch` | SUSE:Linux Enterprise Module for Legacy 15 SP5 | All versions | 2.14.2-150400.24.17.1 |
| `openvswitch` | SUSE:Linux Enterprise Module for Package Hub 15 SP4 | All versions | 2.14.2-150400.24.14.2 |
| `openvswitch` | SUSE:Linux Enterprise Module for Package Hub 15 SP4 | All versions | 2.14.2-150400.24.17.1 |
| `openvswitch` | SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 2.14.2-150400.24.14.2 |
| `openvswitch` | SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 2.14.2-150400.24.17.1 |
| `openvswitch` | SUSE:Linux Enterprise Module for Server Applications 15 SP4 | All versions | 2.14.2-150400.24.14.2 |
| `openvswitch` | SUSE:Linux Enterprise Module for Server Applications 15 SP4 | All versions | 2.14.2-150400.24.17.1 |
| `openvswitch3` | SUSE:Linux Enterprise Module for Server Applications 15 SP5 | All versions | 3.1.0-150500.3.11.1 |
| `openvswitch` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.13.2-150200.9.25.1 |
| `openvswitch` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.13.2-150200.9.28.1 |
| `openvswitch` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 2.14.2-150300.19.11.1 |
| `openvswitch` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 2.14.2-150300.19.14.1 |
| `openvswitch` | SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.13.2-150200.9.25.1 |
| `openvswitch` | SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.13.2-150200.9.28.1 |
| `openvswitch` | SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 2.14.2-150300.19.11.1 |

Products: Openvswitch Openvswitch, Redhat Enterprise Linux, Redhat Fast Datapath, Redhat Openshift Container Platform, Redhat Virtualization.

## How do I fix CVE-2023-5366?

Apply the vendor's patch.

## Is CVE-2023-5366 being exploited?

There is no known exploitation of CVE-2023-5366 in the wild and no public exploit code.

## Other vulnerabilities in Redhat Enterprise Linux

- [CVE-2017-9264](https://insights.sbomify.com/CVE-2017-9264/): Memory corruption in n/a (critical 9.8)
- [CVE-2017-9265](https://insights.sbomify.com/CVE-2017-9265/): Memory corruption in n/a (critical 9.8)
- [CVE-2016-2074](https://insights.sbomify.com/CVE-2016-2074/): Memory corruption in n/a (critical 9.8)
- [CVE-2016-10377](https://insights.sbomify.com/CVE-2016-10377/): Integer overflow in n/a (high 8.8)
- [CVE-2024-22563](https://insights.sbomify.com/CVE-2024-22563/): Denial of service in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-5366 and fix it if it is affected.

What it is: CVE-2023-5366 is a high-severity vulnerability in Redhat Enterprise Linux, published on 6 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-5366 in the wild and no public exploit code.

Affected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-5366/ (Markdown: https://insights.sbomify.com/CVE-2023-5366/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-5366
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-5366
- OSV: https://osv.dev/vulnerability/CVE-2023-5366

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-5366/
Summaries are generated and may contain mistakes; the official description above is the record.
