{"id":"DEBIAN-CVE-2022-49940","details":"In the Linux kernel, the following vulnerability has been resolved:  tty: n_gsm: add sanity check for gsm-\u003ereceive in gsm_receive_buf()  A null pointer dereference can happen when attempting to access the \"gsm-\u003ereceive()\" function in gsmld_receive_buf(). Currently, the code assumes that gsm-\u003erecieve is only called after MUX activation. Since the gsmld_receive_buf() function can be accessed without the need to initialize the MUX, the gsm-\u003ereceive() function will not be set and a NULL pointer dereference will occur.  Fix this by avoiding the call to \"gsm-\u003ereceive()\" in case the function is not initialized by adding a sanity check.  Call Trace:  \u003cTASK\u003e  gsmld_receive_buf+0x1c2/0x2f0 drivers/tty/n_gsm.c:2861  tiocsti drivers/tty/tty_io.c:2293 [inline]  tty_ioctl+0xa75/0x15d0 drivers/tty/tty_io.c:2692  vfs_ioctl fs/ioctl.c:51 [inline]  __do_sys_ioctl fs/ioctl.c:870 [inline]  __se_sys_ioctl fs/ioctl.c:856 [inline]  __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856  do_syscall_x64 arch/x86/entry/common.c:50 [inline]  do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80  entry_SYSCALL_64_after_hwframe+0x63/0xcd","modified":"2026-09-01T20:04:56.832036372Z","published":"2025-06-18T11:15:20.917Z","upstream":["CVE-2022-49940"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-49940"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.19.11-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49940.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.19.11-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49940.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.19.11-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-49940.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}