A NULL pointer dereference was discovered in Linux Kernel. When a slip driver is detaching, the slip_close() will act to
cleanup necessary resources and sl->tty is set to NULL in
slip_close(). Meanwhile, the packet we transmit is blocked,
sl_tx_timeout() will be called. Although slip_close() and
sl_tx_timeout() use sl->lock to synchronize, we don`t judge
whether sl->tty equals to NULL in sl_tx_timeout() and the
null pointer dereference bug will happen.
CVE-2022-41858 - Medium Severity Vulnerability
Vulnerable Library - linuxlinux-4.19.237
The Linux Kernel
Library home page: https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/?wsslib=linux
Found in HEAD commit: 10c7b674d65d46240997df9855fe104bdf05229c
Found in base branch: master
Vulnerable Source Files (2)
/drivers/net/slip/slip.c /drivers/net/slip/slip.c
Vulnerability Details
A NULL pointer dereference was discovered in Linux Kernel. When a slip driver is detaching, the slip_close() will act to cleanup necessary resources and sl->tty is set to NULL in slip_close(). Meanwhile, the packet we transmit is blocked, sl_tx_timeout() will be called. Although slip_close() and sl_tx_timeout() use sl->lock to synchronize, we don`t judge whether sl->tty equals to NULL in sl_tx_timeout() and the null pointer dereference bug will happen.
Publish Date: 2022-09-30
URL: CVE-2022-41858
CVSS 3 Score Details (4.4)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: High - 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-2022-41858
Release Date: 2022-09-30
Fix Resolution: v4.9.311,v4.14.276,v4.19.239,v5.4.190,v5.10.112,v5.15.35,v5.17.4,v5.18-rc2
Step up your Open Source Security Game with Mend here