{"id":"CVE-2026-31616","aliases":["CVE-2026-31616"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()\n\nA broken/bored/mean USB host can overflow the skb_shared_info->frags[]\narray on a Linux gadget exposing a Phonet function by sending an\nunbounded sequence of full-page OUT transfers.\n\npn_rx_complete() finalizes the skb only when req->actual < req->length,\nwhere req->length is set to PAGE_SIZE by the gadget.  If the host always\nsends exactly PAGE_SIZE bytes per transfer, fp->rx.skb will never be\nreset and each completion will add another fragment via\nskb_add_rx_frag().  Once nr_frags exceeds MAX_SKB_FRAGS (default 17),\nsubsequent frag stores overwrite memory adjacent to the shinfo on the\nheap.\n\nDrop the skb and account a length error when the frag limit is reached,\nmatching the fix applied in t7xx by commit f0813bcd2d9d (\"net: wwan:\nt7xx: fix potential skb->frags overflow in RX path\").","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_phonet: fix skb frags[] overflow in pn_rx_complete()\n\nA broken/bored/mean USB host can overflow the skb_shared_info->frags[]\narray on a Linux gadget exposing a Phonet function by sending an\nunbounded sequence of full-page OUT transfers.\n\npn_rx_complete() finalizes the skb only when req->actual < req->length,\nwhere req->length is set to PAGE_SIZE by the gadget.  If the host always\nsends exactly PAGE_SIZE bytes per transfer, fp->rx.skb will never be\nreset and each completion will add another fragment via\nskb_add_rx_frag().  Once nr_frags exceeds MAX_SKB_FRAGS (default 17),\nsubsequent frag stores overwrite memory adjacent to the shinfo on the\nheap.\n\nDrop the skb and account a length error when the frag limit is reached,\nmatching the fix applied in t7xx by commit f0813bcd2d9d (\"net: wwan:\nt7xx: fix potential skb->frags overflow in RX path\").","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: gadget: f_phonet: corrección de desbordamiento de skb frags[] en pn_rx_complete()\n\nUn host USB defectuoso/ocioso/malintencionado puede desbordar el array skb_shared_info  ->  frags[] en un gadget de Linux que expone una función Phonet enviando una secuencia ilimitada de transferencias OUT de página completa.\n\npn_rx_complete() finaliza el skb solo cuando req  ->  actual < req  ->  length, donde req  ->  length es establecido a PAGE_SIZE por el gadget. Si el host siempre envía exactamente PAGE_SIZE bytes por transferencia, fp  ->  rx.skb nunca será reiniciado y cada finalización añadirá otro fragmento a través de skb_add_rx_frag(). Una vez que nr_frags excede MAX_SKB_FRAGS (por defecto 17), los almacenamientos de fragmentos subsiguientes sobrescriben memoria adyacente al shinfo en el heap.\n\nDescartar el skb y registrar un error de longitud cuando se alcanza el límite de fragmentos, coincidiendo con la corrección aplicada en t7xx por el commit f0813bcd2d9d (’net: wwan: t7xx: corregir posible desbordamiento de skb  ->  frags en la ruta RX’).","source":"nvd"}],"published":"2026-04-24T14:42:35.480Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"3d7f7e0c842242878c24b2facff8d6eda23ee1e9","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"b5ec49fa198bd08967a3102bd41f53ccadce72c9","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"7424f0287da73d3d8c5fa5e9d25d26fce762708e","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"9ceff1251904901b0b4e5fe6350fcaffa368ce83","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"c9315ce9da3632c591666a29de82d3e92d46bec1","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"4e476c25bfcab0535ba7c76a903ae77ca8747711","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"66f7471c4042e4eb300e30b5b9d87d1406862673","status":"affected"},{"type":"git","introduced":"b91cd1440870f7a0649e570498b7b93caf9f781c","fixed":"c088d5dd2fffb4de1fb8e7f57751c8b82942180a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.32","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.32","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.32","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3d7f7e0c842242878c24b2facff8d6eda23ee1e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5ec49fa198bd08967a3102bd41f53ccadce72c9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7424f0287da73d3d8c5fa5e9d25d26fce762708e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ceff1251904901b0b4e5fe6350fcaffa368ce83","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9315ce9da3632c591666a29de82d3e92d46bec1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e476c25bfcab0535ba7c76a903ae77ca8747711","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd44ce09b9b569f49ed13e2d87d23d853fc7d6a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66f7471c4042e4eb300e30b5b9d87d1406862673","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c088d5dd2fffb4de1fb8e7f57751c8b82942180a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31616","url":"https://www.cve.org/CVERecord?id=CVE-2026-31616","licence":"CVE Terms of Use","modified":"2026-06-14T17:43:01.212Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31616","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31616","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.516Z","epss":{"score":0.0013,"percentile":0.02851,"date":"2026-12-01T12:00:22.000Z"}}