{"id":"CVE-2026-68209","summary":"media: sun4i-csi: Return queued buffers on start_streaming() failure","details":"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-\u003eqlock.  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\").","modified":"2026-08-12T04:18:46.647440797Z","published":"2026-08-10T12:00:28.245Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68209.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4872161e6fbe4e1783daea8bff79caddfae0fb82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/668face37fdb6b6900645dc8777195498541c9a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8abecc638a7feb20b78fabd563b05e30c071331"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b5184b3f0e9d4cc47059ba1138c9a73d43d2493f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bbba3e260a62810a717b4442a3bb96d0ec0f6309"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68209.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68209"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"577bbf23b758848f0c4a50d346460b690c753024"},{"fixed":"4872161e6fbe4e1783daea8bff79caddfae0fb82"},{"fixed":"a8abecc638a7feb20b78fabd563b05e30c071331"},{"fixed":"b5184b3f0e9d4cc47059ba1138c9a73d43d2493f"},{"fixed":"668face37fdb6b6900645dc8777195498541c9a7"},{"fixed":"bbba3e260a62810a717b4442a3bb96d0ec0f6309"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68209.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.0"},{"fixed":"6.6.148"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.101"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.42"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68209.json"}}],"schema_version":"1.9.0"}