# CVE-2026-68338: net/packet: avoid fanout hook re-registration after unregister

> 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.14% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-08-10T12:03:14.549Z
- **Modified:** 2026-10-19T22:17:13.900Z

## Who should check

- Anyone running Linux \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< acb40ebfa5c4d62f84339fcbf713f2a9fd033a71; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< c820f4b7f2fa38f8769db0d0cefdd94e2721504d; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 4628efbdc7affd094181f5263e65c1062e31f15f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 80ec024d53a05c60ad1d08968dcf745f10c1665c; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 0a052e0808e015e68144a9877e6ef42b952c49fa; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 1bc55c29cd85818e9052f17deb287d5a11fb817f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< a885387dae7986a55bae5c77a15bdd447f64e9b9; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 50aff80475abd3533eef4320477037e6fcc6b56e
- Anyone running Linux 3.1

## Description

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

net/packet: avoid fanout hook re-registration after unregister

packet\_set\_ring() temporarily detaches a socket from packet delivery while
reconfiguring its ring. It records the previous running state, clears
po-\>num, unregisters the protocol hook when needed, drops po-\>bind\_lock,
and later restores po-\>num and re-registers the hook from the saved
was\_running value.

That unlocked window can race with NETDEV\_UNREGISTER. The notifier can
observe the socket as not running, skip \_\_unregister\_prot\_hook(), and
invalidate the per-socket binding by setting po-\>ifindex to -1 and clearing
po-\>prot\_hook.dev. A one-member fanout group can still retain its shared
fanout hook device pointer. When packet\_set\_ring() resumes, re-registering
solely from the stale was\_running state can re-add the fanout hook after
the device has been unregistered.

Treat po-\>ifindex == -1 as an invalidated binding after reacquiring
po-\>bind\_lock. This is distinct from ifindex 0, the normal
unbound/wildcard state: ifindex -1 marks an existing device binding that
was invalidated when the device was unregistered. Restore po-\>num as
before, but do not re-register the hook if device unregister already
detached the socket.

## Affected and fixed versions

- Linux: \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< acb40ebfa5c4d62f84339fcbf713f2a9fd033a71; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< c820f4b7f2fa38f8769db0d0cefdd94e2721504d; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 4628efbdc7affd094181f5263e65c1062e31f15f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 80ec024d53a05c60ad1d08968dcf745f10c1665c; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 0a052e0808e015e68144a9877e6ef42b952c49fa; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 1bc55c29cd85818e9052f17deb287d5a11fb817f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< a885387dae7986a55bae5c77a15bdd447f64e9b9; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 50aff80475abd3533eef4320477037e6fcc6b56e (cvelist)
- Linux: 3.1 (cvelist)

## Mitigation

- Upgrade Linux to 50aff80475abd3533eef4320477037e6fcc6b56e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-68338.md
Affected: Linux >= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, < acb40ebfa5c4d62f84339fcbf713f2a9fd033a71; >= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, < c820f4b7f2fa38f8769db0d0cefdd94e2721504d; >= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, < 4628efbdc7affd094181f5263e65c1062e31f15f; >= dc99f600698dcac69b8f56d…
Fixed in: Linux 4628efbdc7affd094181f5263e65c1062e31f15f, Linux 80ec024d53a05c60ad1d08968dcf745f10c1665c, Linux 0a052e0808e015e68144a9877e6ef42b952c49fa, Linux 1bc55c29cd85818e9052f17deb287d5a11fb817f, Linux 50aff80475abd3533eef4320477037e6fcc6b56e

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-2026-68338 being exploited?

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

### How serious is CVE-2026-68338?

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

### Which versions are affected by CVE-2026-68338?

Linux \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< acb40ebfa5c4d62f84339fcbf713f2a9fd033a71; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< c820f4b7f2fa38f8769db0d0cefdd94e2721504d; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 4628efbdc7affd094181f5263e65c1062e31f15f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 80ec024d53a05c60ad1d08968dcf745f10c1665c; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 0a052e0808e015e68144a9877e6ef42b952c49fa; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 1bc55c29cd85818e9052f17deb287d5a11fb817f; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< a885387dae7986a55bae5c77a15bdd447f64e9b9; \>= dc99f600698dcac69b8f56dda9a8a00d645c5ffc, \< 50aff80475abd3533eef4320477037e6fcc6b56e; Linux 3.1.

### Is there a fix for CVE-2026-68338?

Yes. Fixed in Linux 4628efbdc7affd094181f5263e65c1062e31f15f, Linux 80ec024d53a05c60ad1d08968dcf745f10c1665c, Linux 0a052e0808e015e68144a9877e6ef42b952c49fa, Linux 1bc55c29cd85818e9052f17deb287d5a11fb817f, Linux 50aff80475abd3533eef4320477037e6fcc6b56e. Upgrade Linux to 50aff80475abd3533eef4320477037e6fcc6b56e or later.

### How do I check if I'm affected by CVE-2026-68338?

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

- other: <https://git.kernel.org/stable/c/acb40ebfa5c4d62f84339fcbf713f2a9fd033a71>
- other: <https://git.kernel.org/stable/c/c820f4b7f2fa38f8769db0d0cefdd94e2721504d>
- other: <https://git.kernel.org/stable/c/4628efbdc7affd094181f5263e65c1062e31f15f>
- other: <https://git.kernel.org/stable/c/80ec024d53a05c60ad1d08968dcf745f10c1665c>
- other: <https://git.kernel.org/stable/c/0a052e0808e015e68144a9877e6ef42b952c49fa>
- other: <https://git.kernel.org/stable/c/1bc55c29cd85818e9052f17deb287d5a11fb817f>
- other: <https://git.kernel.org/stable/c/a885387dae7986a55bae5c77a15bdd447f64e9b9>
- other: <https://git.kernel.org/stable/c/50aff80475abd3533eef4320477037e6fcc6b56e>

## 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-2026-68338>

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