Bug 2517025 (CVE-2026-74496) - CVE-2026-74496 kernel: fou: Fix use-after-free in fou_create()
Summary: CVE-2026-74496 kernel: fou: Fix use-after-free in fou_create()
Keywords:
Status: NEW
Alias: CVE-2026-74496
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-15 12:45 UTC by OSIDB Bzimport
Modified: 2026-08-21 07:44 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-15 12:45:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

fou: Fix use-after-free in fou_create()

fou_create() publishes struct fou through sk_user_data before adding the
new FOU port to the per-netns list.  If fou_add_to_port_list() fails,
the error path frees fou while it is still reachable through
sk_user_data.  A concurrent receive can then dereference the freed
object in fou_from_sock().

This ordering issue was previously noted in the linked discussion.

The failure is reachable when local port 0 is requested.  Each socket
binds to a different ephemeral port, but fou_cfg_cmp() compares the
requested port 0 and reports -EALREADY once an entry already exists.

Release the tunnel socket before freeing fou so sk_user_data is cleared
first, and defer reclamation with kfree_rcu() to protect concurrent RCU
readers.  This matches the lifetime handling in fou_release().

Comment 1 Mauro Matteo Cascella 2026-08-21 07:40:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081539-CVE-2026-74496-985e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.