Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Watch
Unwatch
Watching
Releases Only
Ignoring
128
Star
73
Fork
331
src-openEuler
/
kernel
Closed
Code
Issues
1197
Pull Requests
35
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
CVE-2022-48688
Done
#I9LK6P
CVE和安全问题
openeuler-ci-bot
owner
Opened this issue
2024-05-03 23:46
一、漏洞信息 漏洞编号:[CVE-2022-48688](https://nvd.nist.gov/vuln/detail/CVE-2022-48688) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V3.0分值: BaseScore:5.5 Medium Vector:CVSS:3.0/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:i40e: Fix kernel crash during module removalThe driver incorrectly frees client instance and subsequenti40e module removal leads to kernel crash.Reproducer:1. Do ethtool offline test followed immediately by another onehost# ethtool -t eth0 offline; ethtool -t eth0 offline2. Remove recursively irdma module that also removes i40e modulehost# modprobe -r irdmaResult:[ 8675.035651] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.193774] i40e 0000:3d:00.0 eno1: testing finished[ 8675.201316] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.358921] i40e 0000:3d:00.0 eno1: testing finished[ 8675.496921] i40e 0000:3d:00.0: IRDMA hardware initialization FAILED init_state=2 status=-110[ 8686.188955] i40e 0000:3d:00.1: i40e_ptp_stop: removed PHC on eno2[ 8686.943890] i40e 0000:3d:00.1: Deleted LAN device PF1 bus=0x3d dev=0x00 func=0x01[ 8686.952669] i40e 0000:3d:00.0: i40e_ptp_stop: removed PHC on eno1[ 8687.761787] BUG: kernel NULL pointer dereference, address: 0000000000000030[ 8687.768755] #PF: supervisor read access in kernel mode[ 8687.773895] #PF: error_code(0x0000) - not-present page[ 8687.779034] PGD 0 P4D 0[ 8687.781575] Oops: 0000 [#1] PREEMPT SMP NOPTI[ 8687.785935] CPU: 51 PID: 172891 Comm: rmmod Kdump: loaded Tainted: G W I 5.19.0+ #2[ 8687.794800] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.0X.02.0001.051420190324 05/14/2019[ 8687.805222] RIP: 0010:i40e_lan_del_device+0x13/0xb0 [i40e][ 8687.810719] Code: d4 84 c0 0f 84 b8 25 01 00 e9 9c 25 01 00 41 bc f4 ff ff ff eb 91 90 0f 1f 44 00 00 41 54 55 53 48 8b 87 58 08 00 00 48 89 fb <48> 8b 68 30 48 89 ef e8 21 8a 0f d5 48 89 ef e8 a9 78 0f d5 48 8b[ 8687.829462] RSP: 0018:ffffa604072efce0 EFLAGS: 00010202[ 8687.834689] RAX: 0000000000000000 RBX: ffff8f43833b2000 RCX: 0000000000000000[ 8687.841821] RDX: 0000000000000000 RSI: ffff8f4b0545b298 RDI: ffff8f43833b2000[ 8687.848955] RBP: ffff8f43833b2000 R08: 0000000000000001 R09: 0000000000000000[ 8687.856086] R10: 0000000000000000 R11: 000ffffffffff000 R12: ffff8f43833b2ef0[ 8687.863218] R13: ffff8f43833b2ef0 R14: ffff915103966000 R15: ffff8f43833b2008[ 8687.870342] FS: 00007f79501c3740(0000) GS:ffff8f4adffc0000(0000) knlGS:0000000000000000[ 8687.878427] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033[ 8687.884174] CR2: 0000000000000030 CR3: 000000014276e004 CR4: 00000000007706e0[ 8687.891306] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000[ 8687.898441] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400[ 8687.905572] PKRU: 55555554[ 8687.908286] Call Trace:[ 8687.910737] <TASK>[ 8687.912843] i40e_remove+0x2c0/0x330 [i40e][ 8687.917040] pci_device_remove+0x33/0xa0[ 8687.920962] device_release_driver_internal+0x1aa/0x230[ 8687.926188] driver_detach+0x44/0x90[ 8687.929770] bus_remove_driver+0x55/0xe0[ 8687.933693] pci_unregister_driver+0x2a/0xb0[ 8687.937967] i40e_exit_module+0xc/0xf48 [i40e]Two offline tests cause IRDMA driver failure (ETIMEDOUT) and thisfailure is indicated back to i40e_client_subtask() that callsi40e_client_del_instance() to free client instance referencedby pf->cinst and sets this pointer to NULL. During the moduleremoval i40e_remove() calls i40e_lan_del_device() that dereferencespf->cinst that is NULL -> crash.Do not remove client instance when client open callbacks fails andjust clear __I40E_CLIENT_INSTANCE_OPENED bit. The driver also needsto take care about this situation (when netdev is up and clientis NOT opened) in i40e_notify_client_of_netdev_close() andcalls client close callback only when __I40E_CLIENT_INSTANCE_OPENEDis set. 漏洞公开时间:2024-05-03 23:15:07 漏洞创建时间:2024-05-03 15:46:07 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-48688 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48688 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2022-48688 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48688.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2278929 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024050345-CVE-2022-48688-7306@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2278929 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | cve_search | | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | cve_search | | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | cve_search | | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | cve_search | | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | cve_search | | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | cve_search | | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | nvd | | | | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | nvd | | | | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | nvd | | | | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | nvd | | | | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | nvd | | | | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | | nvd | | linux | | https://git.kernel.org/linus/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://git.kernel.org/linus/0ef2d5afb12d379f4dd5df696219a01b88bb778a | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:i40e: Fix kernel crash during module removalThe driver incorrectly frees client instance and subsequenti40e module removal leads to kernel crash.Reproducer:1. Do ethtool offline test followed immediately by another onehost# ethtool -t eth0 offline; ethtool -t eth0 offline2. Remove recursively irdma module that also removes i40e modulehost# modprobe -r irdmaResult:[ 8675.035651] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.193774] i40e 0000:3d:00.0 eno1: testing finished[ 8675.201316] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.358921] i40e 0000:3d:00.0 eno1: testing finished[ 8675.496921] i40e 0000:3d:00.0: IRDMA hardware initialization FAILED init_state=2 status=-110[ 8686.188955] i40e 0000:3d:00.1: i40e_ptp_stop: removed PHC on eno2[ 8686.943890] i40e 0000:3d:00.1: Deleted LAN device PF1 bus=0x3d dev=0x00 func=0x01[ 8686.952669] i40e 0000:3d:00.0: i40e_ptp_stop: removed PHC on eno1[ 8687.761787] BUG: kernel NULL pointer dereference, address: 0000000000000030[ 8687.768755] #PF: supervisor read access in kernel mode[ 8687.773895] #PF: error_code(0x0000) - not-present page[ 8687.779034] PGD 0 P4D 0[ 8687.781575] Oops: 0000 [#1] PREEMPT SMP NOPTI[ 8687.785935] CPU: 51 PID: 172891 Comm: rmmod Kdump: loaded Tainted: G W I 5.19.0+ #2[ 8687.794800] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.0X.02.0001.051420190324 05/14/2019[ 8687.805222] RIP: 0010:i40e_lan_del_device+0x13/0xb0 [i40e][ 8687.810719] Code: d4 84 c0 0f 84 b8 25 01 00 e9 9c 25 01 00 41 bc f4 ff ff ff eb 91 90 0f 1f 44 00 00 41 54 55 53 48 8b 87 58 08 00 00 48 89 fb <48> 8b 68 30 48 89 ef e8 21 8a 0f d5 48 89 ef e8 a9 78 0f d5 48 8b[ 8687.829462] RSP: 0018:ffffa604072efce0 EFLAGS: 00010202[ 8687.834689] RAX: 0000000000000000 RBX: ffff8f43833b2000 RCX: 0000000000000000[ 8687.841821] RDX: 0000000000000000 RSI: ffff8f4b0545b298 RDI: ffff8f43833b2000[ 8687.848955] RBP: ffff8f43833b2000 R08: 0000000000000001 R09: 0000000000000000[ 8687.856086] R10: 0000000000000000 R11: 000ffffffffff000 R12: ffff8f43833b2ef0[ 8687.863218] R13: ffff8f43833b2ef0 R14: ffff915103966000 R15: ffff8f43833b2008[ 8687.870342] FS: 00007f79501c3740(0000) GS:ffff8f4adffc0000(0000) knlGS:0000000000000000[ 8687.878427] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033[ 8687.884174] CR2: 0000000000000030 CR3: 000000014276e004 CR4: 00000000007706e0[ 8687.891306] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000[ 8687.898441] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400[ 8687.905572] PKRU: 55555554[ 8687.908286] Call Trace:[ 8687.910737] <TASK>[ 8687.912843] i40e_remove+0x2c0/0x330 [i40e][ 8687.917040] pci_device_remove+0x33/0xa0[ 8687.920962] device_release_driver_internal+0x1aa/0x230[ 8687.926188] driver_detach+0x44/0x90[ 8687.929770] bus_remove_driver+0x55/0xe0[ 8687.933693] pci_unregister_driver+0x2a/0xb0[ 8687.937967] i40e_exit_module+0xc/0xf48 [i40e]Two offline tests cause IRDMA driver failure (ETIMEDOUT) and thisfailure is indicated back to i40e_client_subtask() that callsi40e_client_del_instance() to free client instance referencedby pf->cinst and sets this pointer to NULL. During the moduleremoval i40e_remove() calls i40e_lan_del_device() that dereferencespf->cinst that is NULL -> crash.Do not remove client instance when client open callbacks fails andjust clear __I40E_CLIENT_INSTANCE_OPENED bit. The driver also needsto take care about this situation (when netdev is up and clientis NOT opened) in i40e_notify_client_of_netdev_close() andcalls client close callback only when __I40E_CLIENT_INSTANCE_OPENEDis set. openEuler评分: 5.5 Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-22.03-LTS-SP1(5.10.0):受影响 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.master(6.6.0):不受影响 6.openEuler-24.03-LTS(6.6.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.6.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-2257
一、漏洞信息 漏洞编号:[CVE-2022-48688](https://nvd.nist.gov/vuln/detail/CVE-2022-48688) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V3.0分值: BaseScore:5.5 Medium Vector:CVSS:3.0/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:i40e: Fix kernel crash during module removalThe driver incorrectly frees client instance and subsequenti40e module removal leads to kernel crash.Reproducer:1. Do ethtool offline test followed immediately by another onehost# ethtool -t eth0 offline; ethtool -t eth0 offline2. Remove recursively irdma module that also removes i40e modulehost# modprobe -r irdmaResult:[ 8675.035651] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.193774] i40e 0000:3d:00.0 eno1: testing finished[ 8675.201316] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.358921] i40e 0000:3d:00.0 eno1: testing finished[ 8675.496921] i40e 0000:3d:00.0: IRDMA hardware initialization FAILED init_state=2 status=-110[ 8686.188955] i40e 0000:3d:00.1: i40e_ptp_stop: removed PHC on eno2[ 8686.943890] i40e 0000:3d:00.1: Deleted LAN device PF1 bus=0x3d dev=0x00 func=0x01[ 8686.952669] i40e 0000:3d:00.0: i40e_ptp_stop: removed PHC on eno1[ 8687.761787] BUG: kernel NULL pointer dereference, address: 0000000000000030[ 8687.768755] #PF: supervisor read access in kernel mode[ 8687.773895] #PF: error_code(0x0000) - not-present page[ 8687.779034] PGD 0 P4D 0[ 8687.781575] Oops: 0000 [#1] PREEMPT SMP NOPTI[ 8687.785935] CPU: 51 PID: 172891 Comm: rmmod Kdump: loaded Tainted: G W I 5.19.0+ #2[ 8687.794800] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.0X.02.0001.051420190324 05/14/2019[ 8687.805222] RIP: 0010:i40e_lan_del_device+0x13/0xb0 [i40e][ 8687.810719] Code: d4 84 c0 0f 84 b8 25 01 00 e9 9c 25 01 00 41 bc f4 ff ff ff eb 91 90 0f 1f 44 00 00 41 54 55 53 48 8b 87 58 08 00 00 48 89 fb <48> 8b 68 30 48 89 ef e8 21 8a 0f d5 48 89 ef e8 a9 78 0f d5 48 8b[ 8687.829462] RSP: 0018:ffffa604072efce0 EFLAGS: 00010202[ 8687.834689] RAX: 0000000000000000 RBX: ffff8f43833b2000 RCX: 0000000000000000[ 8687.841821] RDX: 0000000000000000 RSI: ffff8f4b0545b298 RDI: ffff8f43833b2000[ 8687.848955] RBP: ffff8f43833b2000 R08: 0000000000000001 R09: 0000000000000000[ 8687.856086] R10: 0000000000000000 R11: 000ffffffffff000 R12: ffff8f43833b2ef0[ 8687.863218] R13: ffff8f43833b2ef0 R14: ffff915103966000 R15: ffff8f43833b2008[ 8687.870342] FS: 00007f79501c3740(0000) GS:ffff8f4adffc0000(0000) knlGS:0000000000000000[ 8687.878427] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033[ 8687.884174] CR2: 0000000000000030 CR3: 000000014276e004 CR4: 00000000007706e0[ 8687.891306] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000[ 8687.898441] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400[ 8687.905572] PKRU: 55555554[ 8687.908286] Call Trace:[ 8687.910737] <TASK>[ 8687.912843] i40e_remove+0x2c0/0x330 [i40e][ 8687.917040] pci_device_remove+0x33/0xa0[ 8687.920962] device_release_driver_internal+0x1aa/0x230[ 8687.926188] driver_detach+0x44/0x90[ 8687.929770] bus_remove_driver+0x55/0xe0[ 8687.933693] pci_unregister_driver+0x2a/0xb0[ 8687.937967] i40e_exit_module+0xc/0xf48 [i40e]Two offline tests cause IRDMA driver failure (ETIMEDOUT) and thisfailure is indicated back to i40e_client_subtask() that callsi40e_client_del_instance() to free client instance referencedby pf->cinst and sets this pointer to NULL. During the moduleremoval i40e_remove() calls i40e_lan_del_device() that dereferencespf->cinst that is NULL -> crash.Do not remove client instance when client open callbacks fails andjust clear __I40E_CLIENT_INSTANCE_OPENED bit. The driver also needsto take care about this situation (when netdev is up and clientis NOT opened) in i40e_notify_client_of_netdev_close() andcalls client close callback only when __I40E_CLIENT_INSTANCE_OPENEDis set. 漏洞公开时间:2024-05-03 23:15:07 漏洞创建时间:2024-05-03 15:46:07 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-48688 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48688 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2022-48688 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48688.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2278929 | https://bugzilla.suse.com/show_bug.cgi?id=1223953 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024050345-CVE-2022-48688-7306@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2278929 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2022-48688 | https://ubuntu.com/security/CVE-2022-48688 | | cve_search | | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | cve_search | | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | cve_search | | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | cve_search | | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | cve_search | | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | cve_search | | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae | | nvd | | | | https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc | | nvd | | | | https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9 | | nvd | | | | https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc | | nvd | | | | https://git.kernel.org/stable/c/c49f320e2492738d478bc427dcd54ccfe0cba746 | | nvd | | | | https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520 | | nvd | | linux | | https://git.kernel.org/linus/fb8396aeda5872369a8ed6d2301e2c86e303c520 | https://git.kernel.org/linus/0ef2d5afb12d379f4dd5df696219a01b88bb778a | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:i40e: Fix kernel crash during module removalThe driver incorrectly frees client instance and subsequenti40e module removal leads to kernel crash.Reproducer:1. Do ethtool offline test followed immediately by another onehost# ethtool -t eth0 offline; ethtool -t eth0 offline2. Remove recursively irdma module that also removes i40e modulehost# modprobe -r irdmaResult:[ 8675.035651] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.193774] i40e 0000:3d:00.0 eno1: testing finished[ 8675.201316] i40e 0000:3d:00.0 eno1: offline testing starting[ 8675.358921] i40e 0000:3d:00.0 eno1: testing finished[ 8675.496921] i40e 0000:3d:00.0: IRDMA hardware initialization FAILED init_state=2 status=-110[ 8686.188955] i40e 0000:3d:00.1: i40e_ptp_stop: removed PHC on eno2[ 8686.943890] i40e 0000:3d:00.1: Deleted LAN device PF1 bus=0x3d dev=0x00 func=0x01[ 8686.952669] i40e 0000:3d:00.0: i40e_ptp_stop: removed PHC on eno1[ 8687.761787] BUG: kernel NULL pointer dereference, address: 0000000000000030[ 8687.768755] #PF: supervisor read access in kernel mode[ 8687.773895] #PF: error_code(0x0000) - not-present page[ 8687.779034] PGD 0 P4D 0[ 8687.781575] Oops: 0000 [#1] PREEMPT SMP NOPTI[ 8687.785935] CPU: 51 PID: 172891 Comm: rmmod Kdump: loaded Tainted: G W I 5.19.0+ #2[ 8687.794800] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.0X.02.0001.051420190324 05/14/2019[ 8687.805222] RIP: 0010:i40e_lan_del_device+0x13/0xb0 [i40e][ 8687.810719] Code: d4 84 c0 0f 84 b8 25 01 00 e9 9c 25 01 00 41 bc f4 ff ff ff eb 91 90 0f 1f 44 00 00 41 54 55 53 48 8b 87 58 08 00 00 48 89 fb <48> 8b 68 30 48 89 ef e8 21 8a 0f d5 48 89 ef e8 a9 78 0f d5 48 8b[ 8687.829462] RSP: 0018:ffffa604072efce0 EFLAGS: 00010202[ 8687.834689] RAX: 0000000000000000 RBX: ffff8f43833b2000 RCX: 0000000000000000[ 8687.841821] RDX: 0000000000000000 RSI: ffff8f4b0545b298 RDI: ffff8f43833b2000[ 8687.848955] RBP: ffff8f43833b2000 R08: 0000000000000001 R09: 0000000000000000[ 8687.856086] R10: 0000000000000000 R11: 000ffffffffff000 R12: ffff8f43833b2ef0[ 8687.863218] R13: ffff8f43833b2ef0 R14: ffff915103966000 R15: ffff8f43833b2008[ 8687.870342] FS: 00007f79501c3740(0000) GS:ffff8f4adffc0000(0000) knlGS:0000000000000000[ 8687.878427] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033[ 8687.884174] CR2: 0000000000000030 CR3: 000000014276e004 CR4: 00000000007706e0[ 8687.891306] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000[ 8687.898441] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400[ 8687.905572] PKRU: 55555554[ 8687.908286] Call Trace:[ 8687.910737] <TASK>[ 8687.912843] i40e_remove+0x2c0/0x330 [i40e][ 8687.917040] pci_device_remove+0x33/0xa0[ 8687.920962] device_release_driver_internal+0x1aa/0x230[ 8687.926188] driver_detach+0x44/0x90[ 8687.929770] bus_remove_driver+0x55/0xe0[ 8687.933693] pci_unregister_driver+0x2a/0xb0[ 8687.937967] i40e_exit_module+0xc/0xf48 [i40e]Two offline tests cause IRDMA driver failure (ETIMEDOUT) and thisfailure is indicated back to i40e_client_subtask() that callsi40e_client_del_instance() to free client instance referencedby pf->cinst and sets this pointer to NULL. During the moduleremoval i40e_remove() calls i40e_lan_del_device() that dereferencespf->cinst that is NULL -> crash.Do not remove client instance when client open callbacks fails andjust clear __I40E_CLIENT_INSTANCE_OPENED bit. The driver also needsto take care about this situation (when netdev is up and clientis NOT opened) in i40e_notify_client_of_netdev_close() andcalls client close callback only when __I40E_CLIENT_INSTANCE_OPENEDis set. openEuler评分: 5.5 Vector:CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-22.03-LTS-SP1(5.10.0):受影响 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.master(6.6.0):不受影响 6.openEuler-24.03-LTS(6.6.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.6.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-2257
Comments (
5
)
Sign in
to comment
Status
Done
Backlog
已挂起
Doing
Done
Declined
Assignees
Not set
sanglipeng
sanglipeng
Assignee
Collaborator
+Assign
+Mention
Labels
CVE/UNAFFECTED
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
1
https://gitee.com/src-openeuler/kernel.git
git@gitee.com:src-openeuler/kernel.git
src-openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register