nday
CVE-2025-38734

net/smc: fix UAF on smcsk after smc_listen_out()

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披露
2025-09-05T17:20Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

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

net/smc: fix UAF on smcsk after smc_listen_out()

BPF CI testing report a UAF issue:

[   16.446633] BUG: kernel NULL pointer dereference, address: 000000000000003  0
[   16.447134] #PF: supervisor read access in kernel mod  e
[   16.447516] #PF: error_code(0x0000) - not-present pag  e
[   16.447878] PGD 0 P4D   0
[   16.448063] Oops: Oops: 0000 [#1] PREEMPT SMP NOPT  I
[   16.448409] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:1 Tainted: G           OE      6.13.0-rc3-g89e8a75fda73-dirty #4  2
[   16.449124] Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODUL  E
[   16.449502] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/201  4
[   16.450201] Workqueue: smc_hs_wq smc_listen_wor  k
[   16.450531] RIP: 0010:smc_listen_work+0xc02/0x159  0
[   16.452158] RSP: 0018:ffffb5ab40053d98 EFLAGS: 0001024  6
[   16.452526] RAX: 0000000000000001 RBX: 0000000000000002 RCX: 000000000000030  0
[   16.452994] RDX: 0000000000000280 RSI: 00003513840053f0 RDI: 000000000000000  0
[   16.453492] RBP: ffffa097808e3800 R08: ffffa09782dba1e0 R09: 000000000000000  5
[   16.453987] R10: 0000000000000000 R11: 0000000000000000 R12: ffffa0978274640  0
[   16.454497] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa09782d4092  0
[   16.454996] FS:  0000000000000000(0000) GS:ffffa097bbc00000(0000) knlGS:000000000000000  0
[   16.455557] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003  3
[   16.455961] CR2: 0000000000000030 CR3: 0000000102788004 CR4: 0000000000770ef  0
[   16.456459] PKRU: 5555555  4
[   16.456654] Call Trace  :
[   16.456832]  <TASK  >
[   16.456989]  ? __die+0x23/0x7  0
[   16.457215]  ? page_fault_oops+0x180/0x4c  0
[   16.457508]  ? __lock_acquire+0x3e6/0x249  0
[   16.457801]  ? exc_page_fault+0x68/0x20  0
[   16.458080]  ? asm_exc_page_fault+0x26/0x3  0
[   16.458389]  ? smc_listen_work+0xc02/0x159  0
[   16.458689]  ? smc_listen_work+0xc02/0x159  0
[   16.458987]  ? lock_is_held_type+0x8f/0x10  0
[   16.459284]  process_one_work+0x1ea/0x6d  0
[   16.459570]  worker_thread+0x1c3/0x38  0
[   16.459839]  ? __pfx_worker_thread+0x10/0x1  0
[   16.460144]  kthread+0xe0/0x11  0
[   16.460372]  ? __pfx_kthread+0x10/0x1  0
[   16.460640]  ret_from_fork+0x31/0x5  0
[   16.460896]  ? __pfx_kthread+0x10/0x1  0
[   16.461166]  ret_from_fork_asm+0x1a/0x3  0
[   16.461453]  </TASK  >
[   16.461616] Modules linked in: bpf_testmod(OE) [last unloaded: bpf_testmod(OE)  ]
[   16.462134] CR2: 000000000000003  0
[   16.462380] ---[ end trace 0000000000000000 ]---
[   16.462710] RIP: 0010:smc_listen_work+0xc02/0x1590

The direct cause of this issue is that after smc_listen_out_connected(), newclcsock->sk may be NULL since it will releases the smcsk. Therefore, if the application closes the socket immediately after accept, newclcsock->sk can be NULL. A possible execution order could be as follows:

smc_listen_work                                 | userspace
-----------------------------------------------------------------
lock_sock(sk)                                   |
smc_listen_out_connected()                      |
| \- smc_listen_out                             |
|    | \- release_sock                          |
     | |- sk->sk_data_ready()                   |
                                                | fd = accept();
                                                | close(fd);
                                                |  \- socket->sk = NULL;
/* newclcsock->sk is NULL now */
SMC_STAT_SERV_SUCC_INC(sock_net(newclcsock->sk))

Since smc_listen_out_connected() will not fail, simply swapping the order of the code can easily fix this issue.

以上是 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": 374928,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2025-38734",
  "occurred_at": "2025-09-05T17:20:34.126Z",
  "observed_at": "2026-11-13T05:39:08.090137Z",
  "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"
    },
    "state": "PUBLISHED",
    "date_published": "2025-09-05T17:20:34.126Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。