AZL-116935: CVE-2026-139186 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
gtp: hold RCU in gtpgenlsendechoreq()
Such function is invoked in process context, performs an RCU device lookup and dereference the found device with no additional protection.
============================= WARNING: suspicious RCU usage 7.3.0-virtme #7 Not tainted ----------------------------- net/core/dev.c:1047 RCU-list traversed in non-reader section!!
other info that might help us debug this:
rcuscheduleractive = 2, debuglocks = 1 locks held by python3/233: 2, last CPU#5: #0: ffffffffbab93268 (cblock){++++}-{4:4}, at: genlrcv+0x19/0x40 #1: ffffffffbab93320 (genlmutex){+.+.}-{4:4}, at: genlrcvmsg+0x12c/0x160
stack backtrace: CPU: 5 UID: 0 PID: 233 Comm: python3 Not tainted 7.3.0#7 PREEMPT(full) Hardware name: Bochs, BIOS Bochs 01/01/2011 Call Trace: <TASK> dumpstacklvl+0x6f/0xb0 lockdeprcususpicious.cold+0x37/0x8e devgetbyindexrcu+0x135/0x180 gtpfinddev+0xe7/0x360 [gtp] gtpgenlsendechoreq+0x298/0xb30 [gtp] genlfamilyrcvmsgdoit+0x20f/0x310 genlfamilyrcvmsg+0x3a8/0x640 genlrcvmsg+0xbb/0x160 netlinkrcvskb+0x154/0x3a0 genlrcv+0x28/0x40 netlinkunicast+0x54b/0x860 netlinksendmsg+0x7fb/0xf60 syssendto+0x3d6/0x450 x64syssendto+0xe4/0x1f0 dosyscall64+0xff/0x530 entrySYSCALL64afterhwframe+0x77/0x7f RIP: 0033:0x7ffa43b0256e Code: 4d 89 d8 e8 d4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa RSP: 002b:00007ffd3b8828d0 EFLAGS: 00000202 ORIGRAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007ffd3b8829e0 RCX: 00007ffa43b0256e RDX: 0000000000000034 RSI: 00007ffa3519d0d0 RDI: 0000000000000006 RBP: 00007ffd3b8828e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffa351cc0c0 R13: 00007ffd3b8829e0 R14: 00007ffa354ca130 R15: 00007ffa4433d498 </TASK>
Add the missing RCU guards and keep it for the whole function body, while the RCU-protected device is used.
Found by code inspection, validated explicitly testing the relevant code path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Add the missing RCU guards and keep RCU protection for the entire gtp_genl_send_echo_req() function body.
Event History
Frequently Asked Questions
What conditions are required to reach the affected code path?
The issue is in the GTP subsystem's gtp_genl_send_echo_req() path, which is invoked through generic netlink message handling. The supplied trace shows the path reached from a userspace process sending a netlink message.
What kind of failure is indicated by the report?
The report identifies an RCU device lookup and dereference performed without additional RCU protection in process context. The observed diagnostic is a lockdep warning for traversal of an RCU list outside an RCU reader section.
How can I check whether the vulnerable path is being exercised?
Kernel logs may contain an RCU/lockdep warning stating "RCU-list traversed in non-reader section" with a stack trace including gtp_find_dev() and gtp_genl_send_echo_req() in the gtp module.