{"id":"CVE-2026-31585","aliases":["CVE-2026-31585"],"related":[],"kind":"vulnerability","state":"published","title":"media: vidtv: fix nfeeds state corruption on start_streaming failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix nfeeds state corruption on start_streaming failure\n\nsyzbot reported a memory leak in vidtv_psi_service_desc_init [1].\n\nWhen vidtv_start_streaming() fails inside vidtv_start_feed(), the\nnfeeds counter is left incremented even though no feed was actually\nstarted. This corrupts the driver state: subsequent start_feed calls\nsee nfeeds > 1 and skip starting the mux, while stop_feed calls\neventually try to stop a non-existent stream.\n\nThis state corruption can also lead to memory leaks, since the mux\nand channel resources may be partially allocated during a failed\nstart_streaming but never cleaned up, as the stop path finds\ndvb->streaming == false and returns early.\n\nFix by decrementing nfeeds back when start_streaming fails, keeping\nthe counter in sync with the actual number of active feeds.\n\n[1]\nBUG: memory leak\nunreferenced object 0xffff888145b50820 (size 32):\n comm \"syz.0.17\", pid 6068, jiffies 4294944486\n backtrace (crc 90a0c7d4):\n  vidtv_psi_service_desc_init+0x74/0x1b0 drivers/media/test-drivers/vidtv/vidtv_psi.c:288\n  vidtv_channel_s302m_init+0xb1/0x2a0 drivers/media/test-drivers/vidtv/vidtv_channel.c:83\n  vidtv_channels_init+0x1b/0x40 drivers/media/test-drivers/vidtv/vidtv_channel.c:524\n  vidtv_mux_init+0x516/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:518\n  vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]\n  vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix nfeeds state corruption on start_streaming failure\n\nsyzbot reported a memory leak in vidtv_psi_service_desc_init [1].\n\nWhen vidtv_start_streaming() fails inside vidtv_start_feed(), the\nnfeeds counter is left incremented even though no feed was actually\nstarted. This corrupts the driver state: subsequent start_feed calls\nsee nfeeds > 1 and skip starting the mux, while stop_feed calls\neventually try to stop a non-existent stream.\n\nThis state corruption can also lead to memory leaks, since the mux\nand channel resources may be partially allocated during a failed\nstart_streaming but never cleaned up, as the stop path finds\ndvb->streaming == false and returns early.\n\nFix by decrementing nfeeds back when start_streaming fails, keeping\nthe counter in sync with the actual number of active feeds.\n\n[1]\nBUG: memory leak\nunreferenced object 0xffff888145b50820 (size 32):\n comm \"syz.0.17\", pid 6068, jiffies 4294944486\n backtrace (crc 90a0c7d4):\n  vidtv_psi_service_desc_init+0x74/0x1b0 drivers/media/test-drivers/vidtv/vidtv_psi.c:288\n  vidtv_channel_s302m_init+0xb1/0x2a0 drivers/media/test-drivers/vidtv/vidtv_channel.c:83\n  vidtv_channels_init+0x1b/0x40 drivers/media/test-drivers/vidtv/vidtv_channel.c:524\n  vidtv_mux_init+0x516/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:518\n  vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]\n  vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: vidtv: corrige la corrupción del estado de nfeeds al fallar start_streaming syzbot informó de una fuga de memoria en vidtv_psi_service_desc_init [1]. Cuando vidtv_start_streaming() falla dentro de vidtv_start_feed(), el contador nfeeds queda incrementado a pesar de que ninguna alimentación fue realmente iniciada. Esto corrompe el estado del controlador: las llamadas posteriores a start_feed ven nfeeds mayor que 1 y omiten iniciar el mux, mientras que las llamadas a stop_feed finalmente intentan detener un flujo inexistente. Esta corrupción de estado también puede provocar fugas de memoria, ya que los recursos del mux y del canal pueden ser asignados parcialmente durante un start_streaming fallido pero nunca se limpian, puesto que la ruta de detención encuentra dvb  ->  streaming == false y regresa anticipadamente. Se corrige decrementando nfeeds cuando start_streaming falla, manteniendo el contador sincronizado con el número real de alimentaciones activas. [1]\nERROR: fuga de memoria\nobjeto sin referencia 0x ffff888145b50820 (tamaño 32): comm ’syz.0.17’, pid 6068, jiffies 4294944486 rastreo (crc 90a0c7d4): vidtv_psi_service_desc_init+0x74/0x1b0 drivers/media/test-drivers/vidtv/vidtv_psi.c:288 vidtv_channel_s302m_init+0xb1/0x2a0 drivers/media/test-drivers/vidtv/vidtv_channel.c:83 vidtv_channels_init+0x1b/0x40 drivers/media/test-drivers/vidtv/vidtv_channel.c:524 vidtv_mux_init+0x516/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:518 vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline] vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","source":"nvd"}],"published":"2026-04-24T14:42:14.266Z","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":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"f8cccb427e65d725fc0ba05e8900b4676eda268e","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"60f768d46df561e06d92ffcacc00909f37a0f23d","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"80900b5424f3454256153ce386388df43b324f63","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"17cb7957c979529cc98ff57f7ac331532f1f7c83","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"98c22210aeadce67d9d20059f0dbbd01ba7fdbba","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"25f19e476ab15defe698504212899fdb9f7cd61b","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"83110c2c8c46c035c2e0fc8ff3e4991183bf9ccd","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"4bf95f797edd63c93330eafb6d6e670982344b9b","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"a0e5a598fe9a4612b852406b51153b881592aede","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","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":"5.10","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/f8cccb427e65d725fc0ba05e8900b4676eda268e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60f768d46df561e06d92ffcacc00909f37a0f23d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80900b5424f3454256153ce386388df43b324f63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17cb7957c979529cc98ff57f7ac331532f1f7c83","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98c22210aeadce67d9d20059f0dbbd01ba7fdbba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25f19e476ab15defe698504212899fdb9f7cd61b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/83110c2c8c46c035c2e0fc8ff3e4991183bf9ccd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4bf95f797edd63c93330eafb6d6e670982344b9b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0e5a598fe9a4612b852406b51153b881592aede","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31585","url":"https://www.cve.org/CVERecord?id=CVE-2026-31585","licence":"CVE Terms of Use","modified":"2026-06-14T17:42:17.844Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31585","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31585","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.497Z","epss":{"score":0.0013,"percentile":0.02852,"date":"2026-12-01T12:00:22.000Z"}}