CVE-2022-49307 tty: synclink_gt: Fix null-pointer-dereference in slgt_clean()

Medium 5.5 Published Updated

A null pointer dereference in the synclink_gt driver causes a kernel crash when removing the module after allocation failure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49307?

CVE-2022-49307 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2022-49307?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49307?

Apply the vendor's patch.

Is CVE-2022-49307 being exploited?

There is no known exploitation of CVE-2022-49307 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49307, GHSA-qj2x-5f28-cg38, UBUNTU-CVE-2022-49307.

Is CVE-2022-49307 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free