Closed
CVE-2025-38591 #12429
openeuler-ci-botAdd on  Aug 22, 2025Closed at  Apr 9
openeuler-ci-bot
openeuler-ci-botCollaborators
Aug 22, 2025 Create

一、漏洞信息
漏洞编号:CVE-2025-38591
漏洞归属组件:kernel
漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.19,6.12.33,6.4.0,6.6.0
CVSS评分:
BaseScore:5.5 Medium
Vector:CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞简述:
In the Linux kernel, the following vulnerability has been resolved:bpf: Reject narrower access to pointer ctx fieldsThe following BPF program, simplified from a syzkaller repro, causes akernel warning: r0 = *(u8 *)(r1 + 169); exit;With pointer field sk being at offset 168 in __sk_buff. This access isdetected as a narrower read in bpf_skb_is_valid_access because itdoesn t match offsetof(struct __sk_buff, sk). It is therefore allowedand later proceeds to bpf_convert_ctx_access. Note that for the is_narrower_load case in the convert_ctx_accesses(), the insn->offis aligned, so the cnt may not be 0 because it matches theoffsetof(struct __sk_buff, sk) in the bpf_convert_ctx_access. However,the target_size stays 0 and the verifier errors with a kernel warning: verifier bug: error during ctx access conversion(1)This patch fixes that to return a proper invalid bpf_context accessoff=X size=Y error on the load instruction.The same issue affects multiple other fields in context structures thatallow narrow access. Some other non-affected fields (for sk_msg,sk_lookup, and sockopt) were also changed to use bpf_ctx_range_ptr forconsistency.Note this syzkaller crash was reported in the Closes link below, whichused to be about a different bug, fixed incommit fce7bd8e385a ( bpf/verifier: Handle BPF_LOAD_ACQ instructionsin insn_def_regno() ). Because syzbot somehow confused the two bugs,the new crash and repro didn t get reported to the mailing list.
漏洞公开时间:2025-08-20 01:15:36
漏洞创建时间:2025-08-22 11:22:59
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2025-38591

更多参考(点击展开)
参考来源 参考链接 来源链接
https://docs.bell-sw.com/security/cves/CVE-2025-38591
https://ubuntu.com/security/CVE-2025-38591
https://git.kernel.org/stable/c/202900ceeef67458c964c2af6e1427c8e533ea7c
https://www.cve.org/CVERecord?id=CVE-2025-38591
https://git.kernel.org/stable/c/7847c4140e06f6e87229faae22cc38525334c156
https://git.kernel.org/stable/c/e09299225d5ba3916c91ef70565f7d2187e4cca0
https://git.kernel.org/stable/c/feae34c992eb7191862fb1594c704fbbf650fef8
https://security-tracker.debian.org/tracker/CVE-2025-38591
https://lore.kernel.org/linux-cve-announce/2025081917-CVE-2025-38591-2a4d@gregkh/T/#u
https://git.kernel.org/stable/c/33660d44e789edb4f303210c813fc56d56377a90
https://lore.kernel.org/linux-cve-announce/2025081917-CVE-2025-38591-2a4d@gregkh/T
https://git.kernel.org/linus/e09299225d5ba3916c91ef70565f7d2187e4cca0
https://git.kernel.org/stable/c/058a0da4f6d916a79b693384111bb80a90d73763
https://nvd.nist.gov/vuln/detail/CVE-2025-38591
https://bugzilla.redhat.com/show_bug.cgi?id=2389494

漏洞分析指导链接:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
七彩瞬析开源风险感知平台
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
gregkh/linux https://git.kernel.org/stable/c/202900ceeef67458c964c2af6e1427c8e533ea7c ljqc
https://git.kernel.org/stable/c/202900ceeef67458c964c2af6e1427c8e533ea7c nvd
https://git.kernel.org/stable/c/7847c4140e06f6e87229faae22cc38525334c156 cvelistv5
https://git.kernel.org/stable/c/e09299225d5ba3916c91ef70565f7d2187e4cca0 nvd
https://git.kernel.org/stable/c/feae34c992eb7191862fb1594c704fbbf650fef8 cvelistv5
https://git.kernel.org/stable/c/33660d44e789edb4f303210c813fc56d56377a90 cvelistv5
https://git.kernel.org/linus/e09299225d5ba3916c91ef70565f7d2187e4cca0 osv
https://git.kernel.org/stable/c/058a0da4f6d916a79b693384111bb80a90d73763 cvelistv5

二、漏洞分析结构反馈
影响性分析说明:
In the Linux kernel, the following vulnerability has been resolved:bpf: Reject narrower access to pointer ctx fieldsThe following BPF program, simplified from a syzkaller repro, causes akernel warning: r0 = *(u8 *)(r1 + 169); exit;With pointer field sk being at offset 168 in __sk_buff. This access isdetected as a narrower read in bpf_skb_is_valid_access because itdoesn t match offsetof(struct __sk_buff, sk). It is therefore allowedand later proceeds to bpf_convert_ctx_access. Note that for the is_narrower_load case in the convert_ctx_accesses(), the insn->offis aligned, so the cnt may not be 0 because it matches theoffsetof(struct __sk_buff, sk) in the bpf_convert_ctx_access. However,the target_size stays 0 and the verifier errors with a kernel warning: verifier bug: error during ctx access conversion(1)This patch fixes that to return a proper invalid bpf_context accessoff=X size=Y error on the load instruction.The same issue affects multiple other fields in context structures thatallow narrow access. Some other non-affected fields (for sk_msg,sk_lookup, and sockopt) were also changed to use bpf_ctx_range_ptr forconsistency.Note this syzkaller crash was reported in the Closes link below, whichused to be about a different bug, fixed incommit fce7bd8e385a ( bpf/verifier: Handle BPF_LOAD_ACQ instructionsin insn_def_regno() ). Because syzbot somehow confused the two bugs,the new crash and repro didn t get reported to the mailing list.
openEuler评分:
5.5
Vector:CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP4(4.19.90):受影响
2.openEuler-22.03-LTS-SP3(5.10.0):受影响
3.openEuler-22.03-LTS-SP4(5.10.0):受影响
4.openEuler-24.03-LTS(6.6.0):受影响
5.openEuler-24.03-LTS-SP1(6.6.0):受影响
6.openEuler-24.03-LTS-SP2(6.6.0):受影响
7.master(6.12.33):不受影响
8.openEuler-24.03-LTS-Next(6.6.0):不受影响
9.openEuler-24.03-LTS-SP3(6.6.0):不受影响

修复是否涉及abi变化(是/否):
1.master(6.12.33):否
2.openEuler-20.03-LTS-SP4(4.19.90):否
3.openEuler-22.03-LTS-SP3(5.10.0):否
4.openEuler-22.03-LTS-SP4(5.10.0):否
5.openEuler-24.03-LTS(6.6.0):否
6.openEuler-24.03-LTS-Next(6.6.0):否
7.openEuler-24.03-LTS-SP1(6.6.0):否
8.openEuler-24.03-LTS-SP2(6.6.0):否
9.openEuler-24.03-LTS-SP3(6.6.0):否

原因说明:
1.openEuler-20.03-LTS-SP4(4.19.90):不修复-超出修复范围
2.openEuler-24.03-LTS(6.6.0):正常修复
3.openEuler-24.03-LTS-SP1(6.6.0):正常修复
4.openEuler-24.03-LTS-SP2(6.6.0):正常修复
5.openEuler-22.03-LTS-SP3(5.10.0):不修复-超出修复范围
6.openEuler-22.03-LTS-SP4(5.10.0):不修复-超出修复范围
7.master(6.12.33):不受影响-漏洞代码不能被攻击者触发
8.openEuler-24.03-LTS-Next(6.6.0):不受影响-漏洞代码不能被攻击者触发
9.openEuler-24.03-LTS-SP3(6.6.0):不受影响-漏洞代码不能被攻击者触发

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 22, 2025 创建了CVE和安全问题
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 22, 2025 添加了   CVE/UNFIXED 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 22, 2025 添加了   sig/Kernel 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Aug 22, 2025 Comments:
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2025-38591NoneNonehttps://git.kernel.org/stable/c/202900ceeef67458c964c2af6e1427c8e533ea7c
https://git.kernel.org/stable/c/e09299225d5ba3916c91ef70565f7d2187e4cca0
https://ubuntu.com/security/CVE-2025-38591
https://www.opencve.io/cve/CVE-2025-38591NoneNonehttps://git.kernel.org/stable/c/202900ceeef67458c964c2af6e1427c8e533ea7c
https://git.kernel.org/stable/c/e09299225d5ba3916c91ef70565f7d2187e4cca0
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2025-38591
https://security-tracker.debian.org/tracker/CVE-2025-38591NoneNonehttps://git.kernel.org/linus/e09299225d5ba3916c91ef70565f7d2187e4cca0
http://www.cnnvd.org.cn/web/vulnerability/queryLds.tag?qcvCnnvdid=CVE-2025-38591

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具。
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 23, 2025 修改了描述
71 messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 8 Modify description of issue
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 changed custom state from 进行中 to 已完成
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Removed label: CVE/UNFIXED
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Added label: CVE/FIXED