{"id":"CVE-2026-74496","aliases":["CVE-2026-74496"],"related":[],"kind":"vulnerability","state":"published","title":"fou: Fix use-after-free in fou_create()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfou: Fix use-after-free in fou_create()\n\nfou_create() publishes struct fou through sk_user_data before adding the\nnew FOU port to the per-netns list.  If fou_add_to_port_list() fails,\nthe error path frees fou while it is still reachable through\nsk_user_data.  A concurrent receive can then dereference the freed\nobject in fou_from_sock().\n\nThis ordering issue was previously noted in the linked discussion.\n\nThe failure is reachable when local port 0 is requested.  Each socket\nbinds to a different ephemeral port, but fou_cfg_cmp() compares the\nrequested port 0 and reports -EALREADY once an entry already exists.\n\nRelease the tunnel socket before freeing fou so sk_user_data is cleared\nfirst, and defer reclamation with kfree_rcu() to protect concurrent RCU\nreaders.  This matches the lifetime handling in fou_release().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfou: Fix use-after-free in fou_create()\n\nfou_create() publishes struct fou through sk_user_data before adding the\nnew FOU port to the per-netns list.  If fou_add_to_port_list() fails,\nthe error path frees fou while it is still reachable through\nsk_user_data.  A concurrent receive can then dereference the freed\nobject in fou_from_sock().\n\nThis ordering issue was previously noted in the linked discussion.\n\nThe failure is reachable when local port 0 is requested.  Each socket\nbinds to a different ephemeral port, but fou_cfg_cmp() compares the\nrequested port 0 and reports -EALREADY once an entry already exists.\n\nRelease the tunnel socket before freeing fou so sk_user_data is cleared\nfirst, and defer reclamation with kfree_rcu() to protect concurrent RCU\nreaders.  This matches the lifetime handling in fou_release().","source":"cvelist"}],"published":"2026-08-15T12:27:23.854Z","modified":"2026-10-16T20:17:32.610Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"0ee628a58d83e571f36ec9f07624d6845e420c50","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"a6fca682cfa2041e31aa72cc397c4a1406eb7468","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"b3f9c3e60aa25453774f899d25b5e61dd0bec1d5","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"99f4d3120b244f92e5df787152041296a2860cb5","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"58835985c035a8333742f829ad7e0889a082f9d3","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"9042867d4701728f0c6527215b11471759904d8f","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"a28d8903bfe76089ea4bbdbff9976965f9ef8107","status":"affected"},{"type":"git","introduced":"23461551c00628c3f3fe9cf837bf53cf8f212b63","fixed":"b14361aca6350ff7907b0e9903c7b94dc7d5d4a0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0ee628a58d83e571f36ec9f07624d6845e420c50","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6fca682cfa2041e31aa72cc397c4a1406eb7468","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3f9c3e60aa25453774f899d25b5e61dd0bec1d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99f4d3120b244f92e5df787152041296a2860cb5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58835985c035a8333742f829ad7e0889a082f9d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9042867d4701728f0c6527215b11471759904d8f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a28d8903bfe76089ea4bbdbff9976965f9ef8107","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b14361aca6350ff7907b0e9903c7b94dc7d5d4a0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:58:18.343Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74496","url":"https://www.cve.org/CVERecord?id=CVE-2026-74496","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:50.395Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74496","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74496","licence":"Public domain","modified":"2026-10-16T20:17:32.610Z"}],"updatedAt":"2026-11-25T22:59:33.235Z","epss":{"score":0.00126,"percentile":0.02432,"date":"2026-12-01T12:00:22.000Z"}}