CVE-2026-99859: ppp: fix stale pointer access after pskb_may_pull in ppp_ccp_peek
In the Linux kernel, the following vulnerability has been resolved:
ppp: fix stale pointer access after pskbmaypull in pppccppeek
pppccppeek() caches a pointer to skb->data in dp after the first pskbmaypull(), then uses dp after a second pskbmaypull(skb, len + 2) in the CCPCONFACK handler. If the second pull triggers pskbexpandhead() due to a cloned skb or frag linearization, skb->head is freed and reallocated, leaving dp stale.
The stale dp is subsequently used in CCPOPTLENGTH() and passed to decompinit()/compinit() which read from the freed memory.
Re-derive dp from skb->data after the second pskbmaypull.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In ppp_ccp_peek(), re-derive dp from skb->data after the second pskb_may_pull(skb, len + 2) before using dp.
Event History
Frequently Asked Questions
What packet-processing conditions are required to reach the stale pointer use?
The issue occurs in the CCP_CONFACK handler after a second pskb_may_pull(skb, len + 2). That pull must trigger pskb_expand_head(), such as when the skb is cloned or requires fragment linearization, causing skb->head to be reallocated while the cached pointer remains stale.
What operations use the invalid pointer after the buffer is reallocated?
The stale pointer is used by CCP_OPT_LENGTH() and is passed to decomp_init() or comp_init(). Those operations can read from the freed memory formerly referenced by skb->data.