{"id":"CVE-2026-68209","aliases":["CVE-2026-68209"],"related":[],"kind":"vulnerability","state":"published","title":"media: sun4i-csi: Return queued buffers on start_streaming() failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: sun4i-csi: Return queued buffers on start_streaming() failure\n\nThe vb2 framework hands buffers to the driver via buf_queue() before\ncalling start_streaming().  If start_streaming() returns an error\nwithout first returning those buffers via vb2_buffer_done(),\nvb2_start_streaming() fires WARN_ON(owned_by_drv_count) and the queued\nbuffers leak.\n\nsun4i_csi_start_streaming() returned -EINVAL when no matching CSI\nformat could be found, before any setup (scratch buffer allocation,\npipeline start) had been performed.  The remaining error paths already\nconverge on the err_clear_dma_queue label, which calls\nreturn_all_buffers(..., VB2_BUF_STATE_QUEUED) under csi->qlock.  Jump\nto that label directly: the intermediate err_disable_device /\nerr_disable_pipeline / err_free_scratch_buffer labels are skipped,\nwhich is correct because nothing they would undo has happened yet.\n\nThis mirrors the uvcvideo fix in commit 4cf3b6fd54eb (\"media: uvcvideo:\nReturn queued buffers on start_streaming() failure\").","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: sun4i-csi: Return queued buffers on start_streaming() failure\n\nThe vb2 framework hands buffers to the driver via buf_queue() before\ncalling start_streaming().  If start_streaming() returns an error\nwithout first returning those buffers via vb2_buffer_done(),\nvb2_start_streaming() fires WARN_ON(owned_by_drv_count) and the queued\nbuffers leak.\n\nsun4i_csi_start_streaming() returned -EINVAL when no matching CSI\nformat could be found, before any setup (scratch buffer allocation,\npipeline start) had been performed.  The remaining error paths already\nconverge on the err_clear_dma_queue label, which calls\nreturn_all_buffers(..., VB2_BUF_STATE_QUEUED) under csi->qlock.  Jump\nto that label directly: the intermediate err_disable_device /\nerr_disable_pipeline / err_free_scratch_buffer labels are skipped,\nwhich is correct because nothing they would undo has happened yet.\n\nThis mirrors the uvcvideo fix in commit 4cf3b6fd54eb (\"media: uvcvideo:\nReturn queued buffers on start_streaming() failure\").","source":"cvelist"}],"published":"2026-08-10T12:00:28.245Z","modified":"2026-11-30T16:13:21.673Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"29fce7bcb3b959f6d4fdcdff7d26330152fdf98d","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"7c2c30e282745a83d332c3cf92d1c0bcc491ac54","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"3c0bd793b0083fd4639ba7f60d1e7db8c8ac459a","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"4872161e6fbe4e1783daea8bff79caddfae0fb82","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"a8abecc638a7feb20b78fabd563b05e30c071331","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"b5184b3f0e9d4cc47059ba1138c9a73d43d2493f","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"668face37fdb6b6900645dc8777195498541c9a7","status":"affected"},{"type":"git","introduced":"577bbf23b758848f0c4a50d346460b690c753024","fixed":"bbba3e260a62810a717b4442a3bb96d0ec0f6309","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/29fce7bcb3b959f6d4fdcdff7d26330152fdf98d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c2c30e282745a83d332c3cf92d1c0bcc491ac54","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c0bd793b0083fd4639ba7f60d1e7db8c8ac459a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4872161e6fbe4e1783daea8bff79caddfae0fb82","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8abecc638a7feb20b78fabd563b05e30c071331","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5184b3f0e9d4cc47059ba1138c9a73d43d2493f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/668face37fdb6b6900645dc8777195498541c9a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbba3e260a62810a717b4442a3bb96d0ec0f6309","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68209","url":"https://www.cve.org/CVERecord?id=CVE-2026-68209","licence":"CVE Terms of Use","modified":"2026-08-19T16:31:31.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68209","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68209","licence":"Public domain","modified":"2026-11-30T16:13:21.673Z"}],"updatedAt":"2026-11-30T16:17:31.877Z","epss":{"score":0.00176,"percentile":0.07448,"date":"2026-12-01T12:00:22.000Z"}}