nday
CVE-2024-41040

net/sched: Fix UAF when resolving a clash

Linux / Linux

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

这些标签的依据

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

use-after-free
CWE-416(来源:NVD 分析人员)
远程未授权
编号分配方 Linux 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 AV:N、PR:N、UI:N
网络
编号分配方 Linux 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 AV:N
无需认证
编号分配方 Linux 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 PR:N
无需用户交互
编号分配方 Linux 给出的 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 UI:N
Linux kernel
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernel
操作系统
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernelnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
9.8 CRITICAL v3.1

生命周期

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

摘要

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

net/sched: Fix UAF when resolving a clash

KASAN reports the following UAF:

BUG: KASAN: slab-use-after-free in tcf_ct_flow_table_process_conn+0x12b/0x380 [act_ct]
Read of size 1 at addr ffff888c07603600 by task handler130/6469

Call Trace:
 <IRQ>
 dump_stack_lvl+0x48/0x70
 print_address_description.constprop.0+0x33/0x3d0
 print_report+0xc0/0x2b0
 kasan_report+0xd0/0x120
 __asan_load1+0x6c/0x80
 tcf_ct_flow_table_process_conn+0x12b/0x380 [act_ct]
 tcf_ct_act+0x886/0x1350 [act_ct]
 tcf_action_exec+0xf8/0x1f0
 fl_classify+0x355/0x360 [cls_flower]
 __tcf_classify+0x1fd/0x330
 tcf_classify+0x21c/0x3c0
 sch_handle_ingress.constprop.0+0x2c5/0x500
 __netif_receive_skb_core.constprop.0+0xb25/0x1510
 __netif_receive_skb_list_core+0x220/0x4c0
 netif_receive_skb_list_internal+0x446/0x620
 napi_complete_done+0x157/0x3d0
 gro_cell_poll+0xcf/0x100
 __napi_poll+0x65/0x310
 net_rx_action+0x30c/0x5c0
 __do_softirq+0x14f/0x491
 __irq_exit_rcu+0x82/0xc0
 irq_exit_rcu+0xe/0x20
 common_interrupt+0xa1/0xb0
 </IRQ>
 <TASK>
 asm_common_interrupt+0x27/0x40

Allocated by task 6469:
 kasan_save_stack+0x38/0x70
 kasan_set_track+0x25/0x40
 kasan_save_alloc_info+0x1e/0x40
 __kasan_krealloc+0x133/0x190
 krealloc+0xaa/0x130
 nf_ct_ext_add+0xed/0x230 [nf_conntrack]
 tcf_ct_act+0x1095/0x1350 [act_ct]
 tcf_action_exec+0xf8/0x1f0
 fl_classify+0x355/0x360 [cls_flower]
 __tcf_classify+0x1fd/0x330
 tcf_classify+0x21c/0x3c0
 sch_handle_ingress.constprop.0+0x2c5/0x500
 __netif_receive_skb_core.constprop.0+0xb25/0x1510
 __netif_receive_skb_list_core+0x220/0x4c0
 netif_receive_skb_list_internal+0x446/0x620
 napi_complete_done+0x157/0x3d0
 gro_cell_poll+0xcf/0x100
 __napi_poll+0x65/0x310
 net_rx_action+0x30c/0x5c0
 __do_softirq+0x14f/0x491

Freed by task 6469:
 kasan_save_stack+0x38/0x70
 kasan_set_track+0x25/0x40
 kasan_save_free_info+0x2b/0x60
 ____kasan_slab_free+0x180/0x1f0
 __kasan_slab_free+0x12/0x30
 slab_free_freelist_hook+0xd2/0x1a0
 __kmem_cache_free+0x1a2/0x2f0
 kfree+0x78/0x120
 nf_conntrack_free+0x74/0x130 [nf_conntrack]
 nf_ct_destroy+0xb2/0x140 [nf_conntrack]
 __nf_ct_resolve_clash+0x529/0x5d0 [nf_conntrack]
 nf_ct_resolve_clash+0xf6/0x490 [nf_conntrack]
 __nf_conntrack_confirm+0x2c6/0x770 [nf_conntrack]
 tcf_ct_act+0x12ad/0x1350 [act_ct]
 tcf_action_exec+0xf8/0x1f0
 fl_classify+0x355/0x360 [cls_flower]
 __tcf_classify+0x1fd/0x330
 tcf_classify+0x21c/0x3c0
 sch_handle_ingress.constprop.0+0x2c5/0x500
 __netif_receive_skb_core.constprop.0+0xb25/0x1510
 __netif_receive_skb_list_core+0x220/0x4c0
 netif_receive_skb_list_internal+0x446/0x620
 napi_complete_done+0x157/0x3d0
 gro_cell_poll+0xcf/0x100
 __napi_poll+0x65/0x310
 net_rx_action+0x30c/0x5c0
 __do_softirq+0x14f/0x491

The ct may be dropped if a clash has been resolved but is still passed to the tcf_ct_flow_table_process_conn function for further usage. This issue can be fixed by retrieving ct from skb again after confirming conntrack.

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

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:N
无:不需要账号或授权
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS 3.1 向量,来自 CVE 记录,由 CNA Linux 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 Linux。CVSS 9.8,严重。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 337729,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-41040",
  "occurred_at": "2024-07-29T14:31:53.853Z",
  "observed_at": "2026-11-13T05:38:37.339084Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 9.8,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2024-09-10T16:23:16.958477Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2024-07-29T14:31:53.853Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。