{"id":"CVE-2026-99138","aliases":["CVE-2026-99138"],"related":[],"kind":"vulnerability","state":"published","title":"tcp: fix use-after-free in do_tcp_getsockopt(TCP_CC_INFO)","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix use-after-free in do_tcp_getsockopt(TCP_CC_INFO)\n\ndo_tcp_getsockopt() reads icsk->icsk_ca_ops and dereferences the\nget_info function pointer without rcu_read_lock(). With BPF struct_ops\ncongestion control, ca_ops can point to dynamically allocated memory\nthat is freed concurrently, resulting in a use-after-free when the\nkernel dereferences or calls through the stale pointer.\n\n  BUG: KASAN: slab-use-after-free in do_tcp_getsockopt+0x2037/0x23e0\n  Read of size 8 at addr ffff888013701258 by task exploit/149\n   do_tcp_getsockopt+0x2037/0x23e0 (net/ipv4/tcp.c:4564)\n   tcp_getsockopt+0x91/0xf0\n   __sys_getsockopt+0xf7/0x170\n\nFix this by wrapping the ca_ops load and get_info call within\nrcu_read_lock()/rcu_read_unlock(), and using READ_ONCE() to load\nthe icsk_ca_ops pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix use-after-free in do_tcp_getsockopt(TCP_CC_INFO)\n\ndo_tcp_getsockopt() reads icsk->icsk_ca_ops and dereferences the\nget_info function pointer without rcu_read_lock(). With BPF struct_ops\ncongestion control, ca_ops can point to dynamically allocated memory\nthat is freed concurrently, resulting in a use-after-free when the\nkernel dereferences or calls through the stale pointer.\n\n  BUG: KASAN: slab-use-after-free in do_tcp_getsockopt+0x2037/0x23e0\n  Read of size 8 at addr ffff888013701258 by task exploit/149\n   do_tcp_getsockopt+0x2037/0x23e0 (net/ipv4/tcp.c:4564)\n   tcp_getsockopt+0x91/0xf0\n   __sys_getsockopt+0xf7/0x170\n\nFix this by wrapping the ca_ops load and get_info call within\nrcu_read_lock()/rcu_read_unlock(), and using READ_ONCE() to load\nthe icsk_ca_ops pointer.","source":"cvelist"}],"published":"2026-10-28T10:34:49.993Z","modified":"2026-10-30T13:21:48.017Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"7c312f17917455eedcea29735fa302ebb93cb9b9","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"66b831b427301a9c3e485564009d476631413103","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"a8b024cbf62b497062c86995737fc303e4cc384e","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"8d5fc9e6dc09174d0da6e59678eb8e01a890cbd3","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"e057d201640eebb8ed47ec924872c41570a3bd28","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"86814e5370068ec2bf0caa6e6d55c3e5bfc6c324","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"39aa489e85752f9de214edb0f85e4d578e57af29","status":"affected"},{"type":"git","introduced":"0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2","fixed":"385e474086c2e7e29e2dded690be40dc273e20ee","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.161","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.115","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.59","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.13","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/7c312f17917455eedcea29735fa302ebb93cb9b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66b831b427301a9c3e485564009d476631413103","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8b024cbf62b497062c86995737fc303e4cc384e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d5fc9e6dc09174d0da6e59678eb8e01a890cbd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e057d201640eebb8ed47ec924872c41570a3bd28","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86814e5370068ec2bf0caa6e6d55c3e5bfc6c324","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39aa489e85752f9de214edb0f85e4d578e57af29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/385e474086c2e7e29e2dded690be40dc273e20ee","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99138","url":"https://www.cve.org/CVERecord?id=CVE-2026-99138","licence":"CVE Terms of Use","modified":"2026-10-30T12:42:10.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99138","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99138","licence":"Public domain","modified":"2026-10-30T13:21:48.017Z"}],"updatedAt":"2026-11-25T22:59:47.574Z","epss":{"score":0.00211,"percentile":0.12019,"date":"2026-12-01T12:00:22.000Z"}}