IPBUF安全漏洞报告
English
CVE-2026-23282 CVSS 5.5 中危

CVE-2026-23282 Linux内核SMB客户端拒绝服务漏洞

披露日期: 2026-03-25
来源: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

漏洞信息

漏洞编号
CVE-2026-23282
漏洞类型
拒绝服务
CVSS评分
5.5 中危
攻击向量
本地 (AV:L)
认证要求
低权限 (PR:L)
用户交互
无需交互 (UI:N)
影响产品
Linux Kernel

相关标签

Linux KernelSMB ClientDenial of ServiceLocalOOBKernel Panic

漏洞概述

Linux内核SMB客户端组件存在安全漏洞。在smb2_unlink()函数执行过程中,若SMB2_open_init()或SMB2_close_init()调用失败(例如在网络重连场景下),将导致rqst结构体中的iovs变量未被初始化。随后尝试调用SMB2_open_free()、SMB2_close_free()或smb2_set_related()等函数处理这些未初始化变量时,会触发内核oops,导致系统崩溃。

技术细节

该漏洞位于Linux内核的SMB客户端实现代码中,具体涉及文件删除操作时的错误处理路径。在smb2_unlink()函数中,代码需要准备打开和关闭文件的请求。如果初始化函数(SMB2_open_init或SMB2_close_init)返回失败,代码流程进入错误处理分支。由于在将@close_iov和@open_iov设置到@rqst之前未对其进行初始化,导致后续的清理函数(如SMB2_open_free)尝试访问无效内存地址。这种未初始化变量的使用会导致内核空指针解引用或非法内存访问,进而引发系统崩溃。修复方案是在设置请求之前预先初始化这两个变量。

攻击链分析

STEP 1
1
攻击者获取本地低权限用户访问权限。
STEP 2
2
诱导或等待SMB客户端进入特定状态(如网络重连导致初始化失败)。
STEP 3
3
执行SMB文件删除操作,触发smb2_unlink()函数。
STEP 4
4
内核处理未初始化变量导致系统崩溃,实现拒绝服务。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
#include <stdio.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> /* * PoC for CVE-2026-23282 * This is a conceptual demonstration. Triggering the bug requires a specific * environment (Linux kernel with the vulnerability) and a condition where * SMB2_open_init or SMB2_close_init fails (e.g., during a reconnect). */ int main() { const char* file_path = "/mnt/smb_share/test_file.txt"; int fd; // Create a file on the mounted SMB share fd = open(file_path, O_CREAT | O_RDWR, 0644); if (fd < 0) { perror("Failed to create file"); return 1; } close(fd); printf("File created. Attempting to unlink...\n"); // In a vulnerable scenario, if the SMB connection is unstable // or forced to reconnect here, the unlink operation might // trigger the uninitialized variable bug in smb2_unlink(). if (unlink(file_path) != 0) { perror("Unlink failed"); } else { printf("File unlinked.\n"); } return 0; }

影响范围

Linux Kernel (具体版本需参考Git提交记录)

防御指南

临时缓解措施
建议限制对SMB客户端功能的本地访问权限,并密切关注Linux内核官方发布的更新通知,及时应用安全补丁。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表