tty: synclink_gt: Fix null-pointer-dereference in slgt_clean()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 705b6c7b34f2621f95f606d0e683daa10cdb8eb9 · < 8a95696bdc0e13f8980f05b54a3b9081963d1256| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tty: synclink_gt: Fix null-pointer-dereference in slgt_clean()
When the driver fails at alloc_hdlcdev(), and then we remove the driver module, we will get the following splat:
[ 25.065966] general protection fault, probably for non-canonical address 0xdffffc0000000182: 0000 [#1] PREEMPT SMP KASAN PTI [ 25.066914] KASAN: null-ptr-deref in range [0x0000000000000c10-0x0000000000000c17] [ 25.069262] RIP: 0010:detach_hdlc_protocol+0x2a/0x3e0 [ 25.077709] Call Trace: [ 25.077924] <TASK> [ 25.078108] unregister_hdlc_device+0x16/0x30 [ 25.078481] slgt_cleanup+0x157/0x9f0 [synclink_gt]
Fix this by checking whether the 'info->netdev' is a null pointer first.
From the CVE record · Linux
The Linux kernel’s synclink_gt driver can dereference a null pointer during cleanup if alloc_hdlcdev() fails and the driver module is then removed. This can cause a kernel fault; the input does not establish an attacker path or authentication requirements.
Engineers running Linux kernels with the synclink_gt driver should check whether their kernel includes the fix; affected versions are not specified.