{
  "id": "CVE-2026-63803",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-63803",
  "published_at": "2026-07-19T12:02:08.574Z",
  "title": "hdlc_ppp: sync per-proto timers before freeing hdlc state",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nhdlc_ppp: sync per-proto timers before freeing hdlc state\n\nEach PPP control protocol (LCP/IPCP/IPV6CP) embedded in struct ppp\nregisters a timer via timer_setup(). That struct ppp is the\nhdlc-\u003estate allocation, which detach_hdlc_protocol() frees with kfree()\nin both teardown paths: unregister_hdlc_device() and the re-attach inside\nattach_hdlc_protocol().\n\nThe ppp proto never registered a .detach callback, so\ndetach_hdlc_protocol() performs no timer synchronization before the\nkfree(). The only cancel, timer_delete(\u0026proto-\u003etimer) in ppp_cp_event(),\nis partial (it does not wait for a running callback) and only runs on the\n-\u003eCLOSED transition; ppp_stop()/ppp_close() do not sync either. A\nppp_timer callback already executing (blocked on ppp-\u003elock) survives the\nkfree and then dereferences proto-\u003estate / ppp-\u003elock in freed memory,\nleading to a use-after-free.\n\nFix this by adding a .detach helper that calls timer_shutdown_sync() on\nevery per-proto timer. detach_hdlc_protocol() invokes proto-\u003edetach(dev)\nbefore kfree(hdlc-\u003estate), so timer_shutdown_sync()\nnow runs on both free paths.\ntimer_shutdown_sync() is used instead of timer_delete_sync() because the\nkeepalive path re-arms the timer through add_timer()/mod_timer() and\nshutdown blocks any re-activation during teardown.\n\nInitialize the per-protocol timers in ppp_ioctl() when the protocol is\nattached, and remove the now-redundant timer_setup() from ppp_start(), so\nthat the timers are initialized exactly once at attach time and\nppp_timer_release() never operates on uninitialized timer_list\nstructures. attach_hdlc_protocol() uses kmalloc() (not kzalloc), so\nstruct ppp's protos[i].timer is uninitialized garbage until the first\ntimer_setup(); without this init-at-attach, attaching the PPP protocol\nwithout ever bringing the device up would leave timer_shutdown_sync()\noperating on uninitialized memory in .detach. Moving the init out of\nppp_start() (which only runs on NETDEV_UP) into the attach path makes the\ninitialization unconditional and avoids initializing the same timer_list\ntwice.\n\nThis bug was found by static analysis.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 86d80a231bde4cfb64bfbfbfffd83056fc93628f",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 8308122bc9c065b1f376e081ed300129a2ac9545",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c ce8f9ddca0c9f217342a8b49efd309aa35b81a36",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 508a0139d3bf60f6a03d2fbfb63a89a9463d983a",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c c64dbef1c0fbd36f9530aa75112acdf6a6d3cfd8",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 5a84398101bf9f11e84b176343e4e3ba83e668c0",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c a594debfd4e7ec39413647458907f689ef57fd2f",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c c78a4e41ab5ead6193ad8a2dd92e8906bae659fa"
        ],
        "fixed_in": [
          "86d80a231bde4cfb64bfbfbfffd83056fc93628f",
          "8308122bc9c065b1f376e081ed300129a2ac9545",
          "ce8f9ddca0c9f217342a8b49efd309aa35b81a36",
          "508a0139d3bf60f6a03d2fbfb63a89a9463d983a",
          "c64dbef1c0fbd36f9530aa75112acdf6a6d3cfd8",
          "5a84398101bf9f11e84b176343e4e3ba83e668c0",
          "a594debfd4e7ec39413647458907f689ef57fd2f",
          "c78a4e41ab5ead6193ad8a2dd92e8906bae659fa"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.12"
        ],
        "fixed_in": [
          "0",
          "5.10.261",
          "5.15.211",
          "6.1.177",
          "6.6.144",
          "6.12.95",
          "6.18.38",
          "7.1.3",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 86d80a231bde4cfb64bfbfbfffd83056fc93628f or 8308122bc9c065b1f376e081ed300129a2ac9545 or ce8f9ddca0c9f217342a8b49efd309aa35b81a36 or 508a0139d3bf60f6a03d2fbfb63a89a9463d983a or c64dbef1c0fbd36f9530aa75112acdf6a6d3cfd8 or 5a84398101bf9f11e84b176343e4e3ba83e668c0 or a594debfd4e7ec39413647458907f689ef57fd2f or c78a4e41ab5ead6193ad8a2dd92e8906bae659fa or later.",
      "Upgrade Linux to 0 or 5.10.261 or 5.15.211 or 6.1.177 or 6.6.144 or 6.12.95 or 6.18.38 or 7.1.3 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
