# CVE-2024-35839: netfilter: bridge: replace physindev with physinif in nf\_bridge\_info

> 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.22% (percentile 14, 2026-12-01)
- **Published:** 2024-05-17T14:27:30.524Z
- **Modified:** 2026-08-05T11:30:14.444Z

## Who should check

- Anyone running Linux \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9325e3188a9cf3f69fc6f32af59844bbc5b90547; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9874808878d9eed407e3977fd11fee49de1e1d86
- Anyone running Linux 4.2

## Description

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

netfilter: bridge: replace physindev with physinif in nf\_bridge\_info

An skb can be added to a neigh-\>arp\_queue while waiting for an arp
reply. Where original skb's skb-\>dev can be different to neigh's
neigh-\>dev. For instance in case of bridging dnated skb from one veth to
another, the skb would be added to a neigh-\>arp\_queue of the bridge.

As skb-\>dev can be reset back to nf\_bridge-\>physindev and used, and as
there is no explicit mechanism that prevents this physindev from been
freed under us (for instance neigh\_flush\_dev doesn't cleanup skbs from
different device's neigh queue) we can crash on e.g. this stack:

arp\_process
  neigh\_update
    skb = \_\_skb\_dequeue(&neigh-\>arp\_queue)
      neigh\_resolve\_output(..., skb)
        ...
          br\_nf\_dev\_xmit
            br\_nf\_pre\_routing\_finish\_bridge\_slow
              skb-\>dev = nf\_bridge-\>physindev
              br\_handle\_frame\_finish

Let's use plain ifindex instead of net\_device link. To peek into the
original net\_device we will use dev\_get\_by\_index\_rcu(). Thus either we
get device and are safe to use it or we don't get it and drop skb.

## Affected and fixed versions

- Linux: \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9325e3188a9cf3f69fc6f32af59844bbc5b90547; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9874808878d9eed407e3977fd11fee49de1e1d86 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 9874808878d9eed407e3977fd11fee49de1e1d86 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-35839.md
Affected: Linux >= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, < 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b; >= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, < 9325e3188a9cf3f69fc6f32af59844bbc5b90547; >= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, < 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c; >= c4e70a87d975d1f561a00ab…
Fixed in: Linux 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b, Linux 9325e3188a9cf3f69fc6f32af59844bbc5b90547, Linux 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c, Linux 9874808878d9eed407e3977fd11fee49de1e1d86

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-2024-35839 being exploited?

There is no confirmed exploitation: CVE-2024-35839 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-12-01).

### How serious is CVE-2024-35839?

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

### Which versions are affected by CVE-2024-35839?

Linux \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9325e3188a9cf3f69fc6f32af59844bbc5b90547; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c; \>= c4e70a87d975d1f561a00abfe2d3cefa2a486c95, \< 9874808878d9eed407e3977fd11fee49de1e1d86; Linux 4.2.

### Is there a fix for CVE-2024-35839?

Yes. Fixed in Linux 7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b, Linux 9325e3188a9cf3f69fc6f32af59844bbc5b90547, Linux 544add1f1cfb78c3dfa3e6edcf4668f6be5e730c, Linux 9874808878d9eed407e3977fd11fee49de1e1d86. Upgrade Linux to 9874808878d9eed407e3977fd11fee49de1e1d86 or later.

### How do I check if I'm affected by CVE-2024-35839?

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/7ae19ee81ca56b13c50a78de6c47d5b8fdc9d97b>
- patch: <https://git.kernel.org/stable/c/9325e3188a9cf3f69fc6f32af59844bbc5b90547>
- patch: <https://git.kernel.org/stable/c/544add1f1cfb78c3dfa3e6edcf4668f6be5e730c>
- patch: <https://git.kernel.org/stable/c/9874808878d9eed407e3977fd11fee49de1e1d86>

## 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-2024-35839>

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