nday
CVE-2026-98694

thunderbolt: Fix KASAN reported use-after-free when request is canceled

Linux / Linux

披露于 。本站尚未获取修复依据,不能据此认为没有补丁。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 产品Linux kernel 产品类型操作系统
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

Linux kernel
CVE 记录列出的受影响产品:Linux · Linux
操作系统
CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
10-18T15:46Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

In the Linux kernel, the following vulnerability has been resolved:

thunderbolt: Fix KASAN reported use-after-free when request is canceled

Alan reported that when doing stress testing sometimes KASAN notices use-after-free during control channel operation (stripped down keeping the relevant parts):

BUG: KASAN: slab-use-after-free in tb_cfg_request_sync+0x240/0x250 [thunderbolt]
Read of size 24 at addr ffff88811067f290 by task kworker/u40:2/1760
 <TASK>
 tb_cfg_request_sync+0x240/0x250 [thunderbolt]
 tb_cfg_read_raw+0x367/0x510 [thunderbolt]
 tb_cfg_read+0xec/0x240 [thunderbolt]
 tb_port_get_link_generation+0x258/0x420 [thunderbolt]
 tb_usb3_consumed_bandwidth+0x1c1/0x2c0 [thunderbolt]
 tb_tunnel_consumed_bandwidth+0xfd/0x910 [thunderbolt]
 tb_available_bandwidth+0x5f2/0xeb0 [thunderbolt]
 tb_recalc_estimated_bandwidth+0x2a0/0x1bc0 [thunderbolt]
 tb_handle_dp_bandwidth_request+0x1897/0x5e20 [thunderbolt]
 process_one_work+0x675/0x1230
 worker_thread+0x5e6/0xf70
 kthread+0x365/0x470
 ret_from_fork+0x54d/0x710
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 1760:
 __kmalloc_cache_noprof+0x1ee/0x550
 tb_cfg_read_raw+0x1d3/0x510 [thunderbolt]
 tb_cfg_read+0xec/0x240 [thunderbolt]
 tb_port_get_link_generation+0x258/0x420 [thunderbolt]
 tb_usb3_consumed_bandwidth+0x1c1/0x2c0 [thunderbolt]
 tb_tunnel_consumed_bandwidth+0xfd/0x910 [thunderbolt]
 tb_available_bandwidth+0x5f2/0xeb0 [thunderbolt]
 tb_recalc_estimated_bandwidth+0x2a0/0x1bc0 [thunderbolt]
 tb_handle_dp_bandwidth_request+0x1897/0x5e20 [thunderbolt]
 process_one_work+0x675/0x1230
 worker_thread+0x5e6/0xf70
 kthread+0x365/0x470
 ret_from_fork+0x54d/0x710
 ret_from_fork_asm+0x1a/0x30

Freed by task 926:
 kfree+0x18f/0x4a0
 tb_cfg_request_put+0xb7/0xe0 [thunderbolt]
 tb_cfg_request_work+0x82/0x120 [thunderbolt]
 process_one_work+0x675/0x1230
 worker_thread+0x5e6/0xf70
 kthread+0x365/0x470
 ret_from_fork+0x54d/0x710
 ret_from_fork_asm+0x1a/0x30

Second to last potentially related work creation:

__queue_work+0x575/0xd00
queue_work_on+0x77/0x80
tb_cfg_request_cancel+0xc7/0x260 [thunderbolt]
tb_cfg_request_sync+0x1f6/0x250 [thunderbolt]
tb_cfg_read_raw+0x367/0x510 [thunderbolt]
tb_cfg_read+0xec/0x240 [thunderbolt]
tb_port_get_link_generation+0x258/0x420 [thunderbolt]
tb_usb3_consumed_bandwidth+0x1c1/0x2c0 [thunderbolt]
tb_tunnel_consumed_bandwidth+0xfd/0x910 [thunderbolt]
tb_available_bandwidth+0x5f2/0xeb0 [thunderbolt]
tb_recalc_estimated_bandwidth+0x2a0/0x1bc0 [thunderbolt]
tb_handle_dp_bandwidth_request+0x1897/0x5e20 [thunderbolt]
process_one_work+0x675/0x1230
worker_thread+0x5e6/0xf70
kthread+0x365/0x470
ret_from_fork+0x54d/0x710
ret_from_fork_asm+0x1a/0x30

The last stack trace is helpful because it shows that we are cancelling a request and looking at tb_cfg_request_cancel() what might happen is that tb_cfg_request_work() completes right before tb_cfg_request_cancel() starts and because of this it will call schedule_work() queueing the same work to run again. However, it is already removed from the request_queue and reference count is dropped so when tb_cfg_request_work() triggers again it will access memory that is already released.

Fix this so that we first make sure a cancelled request is not handed away from tb_cfg_request_find() or scheduled to run. Then instead of relying on the worker to clean up the request we will do it in tb_cfg_request_cancel() after the work is canceled from running. Make tb_cfg_request_dequeue() release the request only if it was actually removed from the queue.

以上是 CVE 记录(cvelist)中的原文,未经改写。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 Linux。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 457980,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-98694",
  "occurred_at": "2026-10-18T15:46:18.654Z",
  "observed_at": "2026-11-13T05:40:20.493151Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2026-10-18T15:46:18.654Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。