panasalap / linux-4.19.72_wext-sme

Other
0 stars 0 forks source link

CVE-2021-46904 (Medium) detected in linux-yoctov5.4.51 #560

Open mend-bolt-for-github[bot] opened 7 months ago

mend-bolt-for-github[bot] commented 7 months ago

CVE-2021-46904 - Medium Severity Vulnerability

Vulnerable Library - linux-yoctov5.4.51

Yocto Linux Embedded kernel

Library home page: https://git.yoctoproject.org/git/linux-yocto

Found in HEAD commit: 662967c12efbaddc3a053fdcbe4461a3a774fd7f

Found in base branch: master

Vulnerable Source Files (2)

/drivers/net/usb/hso.c /drivers/net/usb/hso.c

Vulnerability Details

In the Linux kernel, the following vulnerability has been resolved: net: hso: fix null-ptr-deref during tty device unregistration Multiple ttys try to claim the same the minor number causing a double unregistration of the same device. The first unregistration succeeds but the next one results in a null-ptr-deref. The get_free_serial_index() function returns an available minor number but doesn't assign it immediately. The assignment is done by the caller later. But before this assignment, calls to get_free_serial_index() would return the same minor number. Fix this by modifying get_free_serial_index to assign the minor number immediately after one is found to be and rename it to obtain_minor() to better reflect what it does. Similary, rename set_serial_by_index() to release_minor() and modify it to free up the minor number of the given hso_serial. Every obtain_minor() should have corresponding release_minor() call.

Publish Date: 2024-02-26

URL: CVE-2021-46904

CVSS 3 Score Details (5.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.linuxkernelcves.com/cves/CVE-2021-46904

Release Date: 2024-02-26

Fix Resolution: v4.4.268,v4.9.268,v4.14.232,v4.19.187,v5.4.112,v5.10.30,v5.11.14


Step up your Open Source Security Game with Mend here