登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
【大赛通知】开源中国「2026上海开源软件应用创新大赛」火热报名中,百万奖池等你的项目
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
操作系统
&&
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
456
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
关闭
代码
Issues
1271
Pull Requests
980
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
drop-fragmented-ndisc-packets-assembled-in-netfilter
待办的
#IDFP11
内核缺陷
Jiabao
创建于
2025-12-25 10:14
### 环境信息 【OS版本】openEuler-20.03-LTS-SP4 【内核版本】4.19.90-2506.4.0.0333 【硬件平台】无关 【组网信息】无关 ### 缺陷信息 **【问题复现步骤】**: 在测试IPv6协议一致性时,发现内核存在两个IPv6协议一致性问题 **问题** 错误响应带有分片扩展头的ND报文 - 下图是一个NS报文,携带了分片扩展头,不符合RFC6980规范,设备收到此类报文应该静默丢弃,但是内核回复了该报文并且学习到了对端的地址。(此处仅展示了NS报文,若是NA报文携带了分片扩展头,内核处理同样有此问题。) - 下图是TAHI测试套件给出的信息:  - 查看内核提交记录,在5.10.y版本里面找到了对应修复记录,以下是commit链接: - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=68f9f9c2c3b6a7259f6a92bc26cdc7bd22e7a982 问题报文原文如上图,TAHI测试套件对应用例脚本: TAHI测试套件对应用例脚本: // // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 // Yokogawa Electric Corporation. // All rights reserved. // // Redistribution and use of this software in source and binary // forms, with or without modification, are permitted provided that // the following conditions and disclaimer are agreed and accepted // by the user: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in // the documentation and/or other materials provided with // the distribution. // // 3. Neither the names of the copyrighters, the name of the project // which is related to this software (hereinafter referred to as // "project") nor the names of the contributors may be used to // endorse or promote products derived from this software without // specific prior written permission. // // 4. No merchantable use may be permitted without prior written // notification to the copyrighters. // // 5. The copyrighters, the project and the contributors may prohibit // the use of this software at any time. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHTERS, THE PROJECT AND // CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING // BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS // FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE // COPYRIGHTERS, THE PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // // $TAHI: ct/nd.p2/V6LC_2_1_1_A.def,v 1.3 2005/04/25 07:08:03 akisada Exp $ // //////////////////////////////////////////////////////////////// #include "./ndisc.def" #ifndef FRAG_ID #define FRAG_ID 0x00000100 #endif FEM_icmp6_ns( ndisc_atomic_ns, _HETHER_tn2nut, { HopLimit = 255; _SRC(tnv6()); _DST(nut3v6()); }, { TargetAddress = nut3v6(); option = _SLLOPT_tn; } ) FEM_hdr_ipv6_exth( ndisc_atomic_ns_all, _HETHER_tn2nut, { _SRC(tnv6()); _DST(nut3v6()); HopLimit = 255; }, { header = _HDR_IPV6_NAME(ndisc_atomic_ns_all); exthdr = frag_all; upper = payload_all; } ) Hdr_Fragment frag_all { NextHeader = 58; FragmentOffset = 0; MFlag = 0; Identification = FRAG_ID; } Payload payload_all { data = right(_PACKET_IPV6_NAME(ndisc_atomic_ns), 40); } `
### 环境信息 【OS版本】openEuler-20.03-LTS-SP4 【内核版本】4.19.90-2506.4.0.0333 【硬件平台】无关 【组网信息】无关 ### 缺陷信息 **【问题复现步骤】**: 在测试IPv6协议一致性时,发现内核存在两个IPv6协议一致性问题 **问题** 错误响应带有分片扩展头的ND报文 - 下图是一个NS报文,携带了分片扩展头,不符合RFC6980规范,设备收到此类报文应该静默丢弃,但是内核回复了该报文并且学习到了对端的地址。(此处仅展示了NS报文,若是NA报文携带了分片扩展头,内核处理同样有此问题。) - 下图是TAHI测试套件给出的信息:  - 查看内核提交记录,在5.10.y版本里面找到了对应修复记录,以下是commit链接: - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=68f9f9c2c3b6a7259f6a92bc26cdc7bd22e7a982 问题报文原文如上图,TAHI测试套件对应用例脚本: TAHI测试套件对应用例脚本: // // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 // Yokogawa Electric Corporation. // All rights reserved. // // Redistribution and use of this software in source and binary // forms, with or without modification, are permitted provided that // the following conditions and disclaimer are agreed and accepted // by the user: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in // the documentation and/or other materials provided with // the distribution. // // 3. Neither the names of the copyrighters, the name of the project // which is related to this software (hereinafter referred to as // "project") nor the names of the contributors may be used to // endorse or promote products derived from this software without // specific prior written permission. // // 4. No merchantable use may be permitted without prior written // notification to the copyrighters. // // 5. The copyrighters, the project and the contributors may prohibit // the use of this software at any time. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHTERS, THE PROJECT AND // CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING // BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS // FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE // COPYRIGHTERS, THE PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // // $TAHI: ct/nd.p2/V6LC_2_1_1_A.def,v 1.3 2005/04/25 07:08:03 akisada Exp $ // //////////////////////////////////////////////////////////////// #include "./ndisc.def" #ifndef FRAG_ID #define FRAG_ID 0x00000100 #endif FEM_icmp6_ns( ndisc_atomic_ns, _HETHER_tn2nut, { HopLimit = 255; _SRC(tnv6()); _DST(nut3v6()); }, { TargetAddress = nut3v6(); option = _SLLOPT_tn; } ) FEM_hdr_ipv6_exth( ndisc_atomic_ns_all, _HETHER_tn2nut, { _SRC(tnv6()); _DST(nut3v6()); HopLimit = 255; }, { header = _HDR_IPV6_NAME(ndisc_atomic_ns_all); exthdr = frag_all; upper = payload_all; } ) Hdr_Fragment frag_all { NextHeader = 58; FragmentOffset = 0; MFlag = 0; Identification = FRAG_ID; } Payload payload_all { data = right(_PACKET_IPV6_NAME(ndisc_atomic_ns), 40); } `
评论 (
1
)
登录
后才可以发表评论
状态
待办的
待办的
已挂起
进行中
已拒绝
已完成
负责人
未设置
标签
sig/Kernel
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册