CVE-2022-49940 Information
Description
In the Linux kernel the following vulnerability has been resolved:
tty: n_gsm: add sanity check for gsm->receive in gsm_receive_buf()
A null pointer dereference can happen when attempting to access the \gsm->receive()\ function in gsmld_receive_buf(). Currently the code assumes that gsm->recieve is only called after MUX activation. Since the gsmld_receive_buf() function can be accessed without the need to initialize the MUX the gsm->receive() function will not be set and a NULL pointer dereference will occur.
Fix this by avoiding the call to \gsm->receive()\ in case the function is not initialized by adding a sanity check.
Call Trace:
Reference
https://git.kernel.org/stable/c/309aea4b6b813f6678c3a547cfd7fe3a76ffa976 https://git.kernel.org/stable/c/5a82cf64f8ad63caf6bf115642ce44ddbc64311e https://git.kernel.org/stable/c/5aa37f9510345a812c0998bcbbc4d88d1dcc4d8b https://git.kernel.org/stable/c/f16c6d2e58a4c2b972efcf9eb12390ee0ba3befb
Related CNNVD
CNNVD-202506-2225 (Published: 2025-06-18)
Share on: