Bug 2540872 - kernel: kernel: strparser: use-after-free via msg_timer_work rearm after strp_done() cancellation
Summary: kernel: kernel: strparser: use-after-free via msg_timer_work rearm after strp...
Keywords:
Status: NEW
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-24 23:49 UTC by OSIDB Bzimport
Modified: 2026-10-19 12:38 UTC (History)
17 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:85000 0 None None None 2026-10-19 12:38:35 UTC

Description OSIDB Bzimport 2026-09-24 23:49:30 UTC
A use-after-free vulnerability was found in the Linux kernel's strparser subsystem (net/strparser/strparser.c), reachable via ESP-in-TCP (espintcp).

When espintcp_close() calls strp_done() to tear down the stream parser, it cancels msg_timer_work via cancel_delayed_work_sync(). However, strp_data_ready() can concurrently run on another CPU and pass the strp->stopped check before strp_stop() sets it. This allows strp_recv() to re-arm msg_timer_work via mod_delayed_work() after cancellation has completed. When the socket context is subsequently freed, the re-armed
timer fires against freed memory, resulting in a use-after-free. The vulnerable code path is reachable by an unprivileged local user was introduced in commit bbb03029a899 ("strparser: Generalize strparser"). 

Upstream patch (not yet merged):
https://lore.kernel.org/all/aZgpkyTDU3aXe_V0@v4bel/

Comment 4 Jon Orris 2026-10-19 12:38:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:85000 https://access.redhat.com/errata/RHSA-2026:85000


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