字号·· | 护眼
漏洞档案 · 高危

Samba vfs_fruit 堆越界读写(CVE-2021-44142)

CVE-2021-44142 别名:GHSA-MPFW-9WP5-HFFF
CVSS 8.8 / 3.1 EPSS 73.6% CISA KEV 在野利用 公开 PoC · 5
综合风险82/ 100
CVSS8.8高危
EPSS73.6%30 天利用概率
机构收录时间2022-02-21更新 2026-12-01

研判简报

概述

Samba 的 vfs_fruit 模块通过扩展文件属性(EA/xattr)兼容 Apple SMB 客户端与 Netatalk AFP。启用 vfs_fruit 的受影响版本在处理特制扩展属性时存在堆越界读写(CWE-125、CWE-787)。具备扩展属性写权限的远程攻击者可借此以 smbd 进程权限(通常为 root)执行任意代码。运行 Samba 文件共享、尤其是面向 macOS 客户端并启用 vfs_fruit 的运维与安全团队应优先关注。

严重性

CVSS 3.1 评分 8.8(high),综合风险分 81.92/100;EPSS 30 天利用概率 73.6%(百分位 99.5%,2026-11-25)。攻击面为经网络可达的 SMB 服务,前置条件为对扩展文件属性具备写权限。

利用状态

CISA KEV 已收录(收录日期 2024-07-25),要求按厂商说明修复或缓解,否则停用产品(期限材料未给出)。存在 Exploit-DB/公开 PoC 共 3 条,参考链接含多个 GitHub PoC 仓库。CISA SSVC 评估:automatable=no、exploitation=none、technical_impact=total。核查日期 2026-11-25。材料未给出勒索软件关联信息与 Nuclei 状态。

受影响产品

Samba 4.13.17、4.14.12、4.15.5 之前的版本,且配置了 vfs_fruit 模块;结构化受影响区间记为 <4.13.17、<4.14.12、<4.15.5。组件为 vfs_fruit;部署形态材料未给出(通常为 SMB 文件服务器)。

修复版本

官方修复版本:Samba 4.13.17、Samba 4.14.12、Samba 4.15.5。补丁细节材料未给出。

缓解措施

无法立即修复时,按 KEV 要求遵循厂商缓解说明或停用产品;可考虑的替代动作包括在受影响共享上禁用 vfs_fruit、限制对扩展文件属性的写权限。材料未给出厂商具体缓解步骤。

响应步骤

  1. 盘点 Samba 版本并确认是否加载 vfs_fruit,标记 <4.13.17、<4.14.12、<4.15.5 的主机。
  2. 升级至 4.13.17、4.14.12 或 4.15.5;无法升级的按 KEV 要求执行厂商缓解或停用。
  3. 收敛 SMB 暴露面,审计并限制可写扩展属性的账户与共享。
  4. 排查 smbd 异常进程行为与可疑 xattr 写入,关注 T1203/T1068 相关迹象。
  5. 参考公开 PoC 与参考链接验证修复效果,持续跟踪 EPSS 与 KEV 状态。

参考来源

  1. https://www.cisa.gov/sites/default/files/2024-07/aa24-207a-dprk-cyber-group-conducts-global-espionage-campaign.pdfkev
  2. https://vulncheck.com/xdb/5cc7351afc11exploit,vulncheck_xdb
  3. https://github.com/hrsman/Samba-CVE-2021-44142poc,github,exploit,poc_github
  4. https://vulncheck.com/xdb/c065f7d2d9fdexploit,vulncheck_xdb
  5. https://github.com/horizon3ai/CVE-2021-44142poc,github,exploit,poc_github
  6. https://vulncheck.com/xdb/4d239fad4341exploit,vulncheck_xdb
  7. https://github.com/neyugNat/Samba_Fruit_Vulnpoc,github,exploit,poc_github
  8. https://vulncheck.com/kev/cve-2021-44142advisory,vulncheck_kev
  9. https://www.samba.org/samba/security/CVE-2021-44142.htmlx_transferred,advisory,euvd
  10. https://www.zerodayinitiative.com/blog/2022/2/1/cve-2021-44142-details-on-a-samba-code-execution-bug-demonstrated-at-pwn2own-austinx_transferred,advisory,euvd
  11. https://kb.cert.org/vuls/id/119678third-party-advisory,third-party-advisory,x_transferred,advisory,euvd
  12. https://bugzilla.samba.org/show_bug.cgi?id=14914x_transferred,advisory,euvd
  13. https://security.gentoo.org/glsa/202309-06vendor-advisory,vendor-advisory,x_transferred,advisory,euvd
  14. https://www.kb.cert.org/vuls/id/119678
  15. https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-30995advisory,euvd
  16. https://github.com/Nxvh1337/CVE-2021-44142-vulnerable-labexploit,poc_github