In the Linux kernel, the following vulnerability has been resolved:
hdlc_ppp: sync per-proto timers before freeing hdlc state
Each PPP control protocol (LCP/IPCP/IPV6CP) embedded in struct ppp registers a timer via timer_setup(). That struct ppp is the hdlc->state allocation, which detach_hdlc_protocol() frees with kfree() in both teardown paths: unregister_hdlc_device() and the re-attach inside attach_hdlc_protocol().
The ppp proto never registered a .detach callback, so detach_hdlc_protocol() performs no timer synchronization before the kfree(). The only cancel, timer_delete(&proto->timer) in ppp_cp_event(), is partial (it does not wait for a running callback) and only runs on the ->CLOSED transition; ppp_stop()/ppp_close() do not sync either. A ppp_timer callback already executing (blocked on ppp->lock) survives the kfree and then dereferences proto->state / ppp->lock in freed memory, leading to a use-after-free.
Fix this by adding a .detach helper that calls timer_shutdown_sync() on every per-proto timer. detach_hdlc_protocol() invokes proto->detach(dev) before kfree(hdlc->state), so timer_shutdown_sync() now runs on both free paths. timer_shutdown_sync() is used instead of timer_delete_sync() because the keepalive path re-arms the timer through add_timer()/mod_timer() and shutdown blocks any re-activation during teardown.
Initialize the per-protocol timers in ppp_ioctl() when the protocol is attached, and remove the now-redundant timer_setup() from ppp_start(), so that the timers are initialized exactly once at attach time and ppp_timer_release() never operates on uninitialized timer_list structures. attach_hdlc_protocol() uses kmalloc() (not kzalloc), so struct ppp's protos[i].timer is uninitialized garbage until the first timer_setup(); without this init-at-attach, attaching the PPP protocol without ever bringing the device up would leave timer_shutdown_sync() operating on uninitialized memory in .detach. Moving the init out of ppp_start() (which only runs on NETDEV_UP) into the attach path makes the initialization unconditional and avoids initializing the same timer_list twice.
This bug was found by static analysis.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux-6.1Upgrade linux | Jul 20, 2026 | Jul 20, 2026 |
| Redhat_linux | — | No solution exists | Jul 22, 2026 | Jul 19, 2026 |
| Ubuntu | — | Upgrade linux-image-realtimeUpgrade linux-image-virtualUpgrade linux-image-generic-7.0Upgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-realtime-64kUpgrade linux-image-oracleUpgrade linux-image-aws-7.0Upgrade linux-image-raspi-realtimeUpgrade linux-image-7.0.0-31-genericUpgrade linux-image-gcpUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-oem-26.04bUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-raspi-7.0Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-gcp-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-awsUpgrade linux-image-azure-7.0Upgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-aws-64kUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-gkeUpgrade linux-image-virtual-7.0Upgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-oem-26.04aUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-realtime-7.0Upgrade linux-image-azure-lts-26.04Upgrade linux-image-oracle-7.0Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-raspiUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-nvidiaUpgrade linux-image-ibm-7.0Upgrade linux-image-genericUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-nvidia-7.0Upgrade linux-image-gke-64k-7.0Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-64kUpgrade linux-image-generic-64k-7.0Upgrade linux-image-oem-26.04Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-generic-64kUpgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-nvidia-bosUpgrade linux-image-azureUpgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-7.0.0-1013-oemUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-ibmUpgrade linux-image-gke-7.0Upgrade linux-image-gke-64kUpgrade linux-image-generic-hwe-24.04 | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 27, 2026 | Jul 19, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub