{"id":"CVE-2026-138931","aliases":["CVE-2026-138931"],"related":[],"kind":"vulnerability","state":"published","title":"media: v4l2-isp: reject zero-sized parameter blocks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-isp: reject zero-sized parameter blocks\n\nv4l2_isp_params_validate_buffer() walks the blocks of a parameters\nbuffer by adding block->size to the current offset. A block whose\ntype_info[] entry is an uninitialised hole passes every check on the\nway there: a size of 0 is not caught by the block->size > buffer_size\ntest, and the match against the type info size compares 0 with the\nhole's own 0 and passes as well. The walk then makes no forward\nprogress and loops forever.\n\nDrivers build their type_info[] arrays with designated initialisers\nindexed by their block type enumeration, so an enumerator left without\nan entry leaves a zeroed hole rather than failing the build. Drivers\ncall the validator from vb2 .buf_prepare, so such a hole turns a\nVIDIOC_QBUF on the parameters video device into an unkillable task\nspinning with the queue mutex held.\n\nReject a block whose type info entry is empty. The driver does not\nimplement the type, so it cannot tell whether the block content is\nmeaningful, and accepting it silently would leave that content\nunconstrained until a later kernel implements the type and starts\nvalidating it. The size match then always runs against a non-zero\nsize, and no block can advance the walk by zero.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-isp: reject zero-sized parameter blocks\n\nv4l2_isp_params_validate_buffer() walks the blocks of a parameters\nbuffer by adding block->size to the current offset. A block whose\ntype_info[] entry is an uninitialised hole passes every check on the\nway there: a size of 0 is not caught by the block->size > buffer_size\ntest, and the match against the type info size compares 0 with the\nhole's own 0 and passes as well. The walk then makes no forward\nprogress and loops forever.\n\nDrivers build their type_info[] arrays with designated initialisers\nindexed by their block type enumeration, so an enumerator left without\nan entry leaves a zeroed hole rather than failing the build. Drivers\ncall the validator from vb2 .buf_prepare, so such a hole turns a\nVIDIOC_QBUF on the parameters video device into an unkillable task\nspinning with the queue mutex held.\n\nReject a block whose type info entry is empty. The driver does not\nimplement the type, so it cannot tell whether the block content is\nmeaningful, and accepting it silently would leave that content\nunconstrained until a later kernel implements the type and starts\nvalidating it. The size match then always runs against a non-zero\nsize, and no block can advance the walk by zero.","source":"cvelist"}],"published":"2026-11-30T13:26:18.933Z","modified":"2026-11-30T14:17:52.290Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3cb6de6fafb8fca55b14313e63f13ce10ecc6fc4","fixed":"db7fce6eb2a7699cb583ba07ad4e78dbd23d750a","status":"affected"},{"type":"git","introduced":"3cb6de6fafb8fca55b14313e63f13ce10ecc6fc4","fixed":"43ba38e1e02bbfbe99d3c4145df3c24797586c97","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/db7fce6eb2a7699cb583ba07ad4e78dbd23d750a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43ba38e1e02bbfbe99d3c4145df3c24797586c97","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138931","url":"https://www.cve.org/CVERecord?id=CVE-2026-138931","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:18.933Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138931","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138931","licence":"Public domain","modified":"2026-11-30T14:17:52.290Z"}],"updatedAt":"2026-11-30T14:33:04.361Z","epss":{"score":0.00198,"percentile":0.09978,"date":"2026-12-01T12:00:22.000Z"}}