PT-2021-7997

CVE-2021-46906

·

تاريخ النشر

2021-05-05

·

تاريخ التحديث

2026-10-19

الوصف من

CVSS 3.1
5.5
متوسطة
المقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the calculation of report length in the hid submit ctrl() function, which does not account for the possibility of a zero-sized report. When a report of size 0 is processed, hid submit ctrl() calculates transfer buffer length as 16384, leading to an information leak of 16384 bytes when passed to the USB core layer. This is reported by KMSAN when running the syzkaller reproducer. The estimated number of potentially affected devices worldwide is not available. There is no information about real-world incidents where this issue was exploited.
To fix this, hid report len() needs to be modified to account for the zero report size case using DIV ROUND UP for the division, and then called from hid submit ctrl(). The hid submit ctrl() function is vulnerable due to its incorrect calculation of the report length, specifically when report->size is zero. The transfer buffer length variable is calculated incorrectly, leading to the information leak.
Recommendations To resolve the issue, modify hid report len() to account for the zero report size case by using DIV ROUND UP for the division. Then, call hid report len() from hid submit ctrl(). As a temporary workaround, consider restricting the use of the hid submit ctrl() function until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
التأثيرات
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
CLSA-2024-1720468480
CLSA-2025-1766599987
OESA-2024-1345
OESA-2024-1346
OPENSUSE-SU-2024_0857-1
SUSE-SU-2024:0856-1
SUSE-SU-2024:0857-1
SUSE-SU-2024:0925-1
SUSE-SU-2024:0926-1
SUSE-SU-2024:0975-1
SUSE-SU-2024:0976-1
USN-6976-1
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾