{"api_version":"1","generated_at":"2026-09-11T21:38:12+00:00","cve":"CVE-2026-89741","urls":{"html":"https://cve.report/CVE-2026-89741","api":"https://cve.report/api/cve/CVE-2026-89741.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-89741","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89741"},"summary":{"title":"Revert \"media: v4l2-dev: fix error handling in __video_register_device()\"","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"media: v4l2-dev: fix error handling in __video_register_device()\"\n\nThis reverts commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a.\n\nThe intentions of that patch were good, but it doesn't work.\n\nThe idea is that if device_register fails, you have to do a put_device\nto let the ref counter release resources.\n\nHowever, the V4L2 API says that if video_register_device() fails, then\nyou have to call video_device_release(), which kfree()s the video_device\nstruct.\n\nBut the put_device() will already have freed the struct, so you end\nup in a double-free scenario.\n\nThere is not really a good way of fixing this without breaking\nvideo_register_device() into two parts, one that initializes everything,\nand one that does the actual device_register, and then converting all\nV4L2 drivers to this new model.\n\nThat is a massive job, and it is very unlikely that device_register\nwill fail.\n\nSo rather than ending up in a double-free scenario, just revert this\npatch, and in that case we'll have a small memory leak. Which is a lot\nmore robust.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-11 20:20:04","updated_at":"2026-09-11 20:20:04"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ce792b94e03882108019ba996c1a7c4d4e09be2c","name":"https://git.kernel.org/stable/c/ce792b94e03882108019ba996c1a7c4d4e09be2c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e7600f5cee5de14065f950807931d6e6d40fb2d7","name":"https://git.kernel.org/stable/c/e7600f5cee5de14065f950807931d6e6d40fb2d7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/712ca1cf756de2557a116e0df55791bac0c9f99e","name":"https://git.kernel.org/stable/c/712ca1cf756de2557a116e0df55791bac0c9f99e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aad08b5f67d2a8116e1a00bce2611c1513b10bce","name":"https://git.kernel.org/stable/c/aad08b5f67d2a8116e1a00bce2611c1513b10bce","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-89741","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89741","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2429bb9fad88c8fa84c4956b0a21cf5afe5e92b7 712ca1cf756de2557a116e0df55791bac0c9f99e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2a934fdb01db6458288fc9386d3d8ceba6dd551a aad08b5f67d2a8116e1a00bce2611c1513b10bce git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2a934fdb01db6458288fc9386d3d8ceba6dd551a ce792b94e03882108019ba996c1a7c4d4e09be2c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2a934fdb01db6458288fc9386d3d8ceba6dd551a e7600f5cee5de14065f950807931d6e6d40fb2d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee141706e701356dda41c6fed9ee18bf427c28e3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e5c8e62ae551e0ad2e15412aa0c57c2856d59677 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8b451a9a46f2bfc510e6d5c2492df91647586184 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6be1f5633eae200af2527e9eeb7f51be5739b0f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ae7b143e05b36fc69d6571751855946cc45064c6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4451412739ed33a49b34624299394ee575116d0c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.35 6.12.109 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.295 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.239 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.186 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.142 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.95 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.15.4 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.109 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.50 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.4 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/v4l2-core/v4l2-dev.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"712ca1cf756de2557a116e0df55791bac0c9f99e","status":"affected","version":"2429bb9fad88c8fa84c4956b0a21cf5afe5e92b7","versionType":"git"},{"lessThan":"aad08b5f67d2a8116e1a00bce2611c1513b10bce","status":"affected","version":"2a934fdb01db6458288fc9386d3d8ceba6dd551a","versionType":"git"},{"lessThan":"ce792b94e03882108019ba996c1a7c4d4e09be2c","status":"affected","version":"2a934fdb01db6458288fc9386d3d8ceba6dd551a","versionType":"git"},{"lessThan":"e7600f5cee5de14065f950807931d6e6d40fb2d7","status":"affected","version":"2a934fdb01db6458288fc9386d3d8ceba6dd551a","versionType":"git"},{"status":"affected","version":"ee141706e701356dda41c6fed9ee18bf427c28e3","versionType":"git"},{"status":"affected","version":"e5c8e62ae551e0ad2e15412aa0c57c2856d59677","versionType":"git"},{"status":"affected","version":"8b451a9a46f2bfc510e6d5c2492df91647586184","versionType":"git"},{"status":"affected","version":"b6be1f5633eae200af2527e9eeb7f51be5739b0f","versionType":"git"},{"status":"affected","version":"ae7b143e05b36fc69d6571751855946cc45064c6","versionType":"git"},{"status":"affected","version":"4451412739ed33a49b34624299394ee575116d0c","versionType":"git"},{"lessThan":"6.12.109","status":"affected","version":"6.12.35","versionType":"semver"},{"lessThan":"5.5","status":"affected","version":"5.4.295","versionType":"semver"},{"lessThan":"5.11","status":"affected","version":"5.10.239","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.186","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.142","versionType":"semver"},{"lessThan":"6.7","status":"affected","version":"6.6.95","versionType":"semver"},{"lessThan":"6.16","status":"affected","version":"6.15.4","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/v4l2-core/v4l2-dev.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.109","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.50","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.109","versionStartIncluding":"6.12.35","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.50","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.4","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.295","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.239","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.186","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.142","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.95","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"media: v4l2-dev: fix error handling in __video_register_device()\"\n\nThis reverts commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a.\n\nThe intentions of that patch were good, but it doesn't work.\n\nThe idea is that if device_register fails, you have to do a put_device\nto let the ref counter release resources.\n\nHowever, the V4L2 API says that if video_register_device() fails, then\nyou have to call video_device_release(), which kfree()s the video_device\nstruct.\n\nBut the put_device() will already have freed the struct, so you end\nup in a double-free scenario.\n\nThere is not really a good way of fixing this without breaking\nvideo_register_device() into two parts, one that initializes everything,\nand one that does the actual device_register, and then converting all\nV4L2 drivers to this new model.\n\nThat is a massive job, and it is very unlikely that device_register\nwill fail.\n\nSo rather than ending up in a double-free scenario, just revert this\npatch, and in that case we'll have a small memory leak. Which is a lot\nmore robust."}],"providerMetadata":{"dateUpdated":"2026-09-11T19:46:47.877Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/712ca1cf756de2557a116e0df55791bac0c9f99e"},{"url":"https://git.kernel.org/stable/c/aad08b5f67d2a8116e1a00bce2611c1513b10bce"},{"url":"https://git.kernel.org/stable/c/ce792b94e03882108019ba996c1a7c4d4e09be2c"},{"url":"https://git.kernel.org/stable/c/e7600f5cee5de14065f950807931d6e6d40fb2d7"}],"title":"Revert \"media: v4l2-dev: fix error handling in __video_register_device()\"","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-89741","datePublished":"2026-09-11T19:46:47.877Z","dateReserved":"2026-09-11T19:38:34.761Z","dateUpdated":"2026-09-11T19:46:47.877Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-11 20:20:04","lastModifiedDate":"2026-09-11 20:20:04","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"89741","Ordinal":"1","Title":"Revert \"media: v4l2-dev: fix error handling in __video_register_","CVE":"CVE-2026-89741","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"89741","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"media: v4l2-dev: fix error handling in __video_register_device()\"\n\nThis reverts commit 2a934fdb01db6458288fc9386d3d8ceba6dd551a.\n\nThe intentions of that patch were good, but it doesn't work.\n\nThe idea is that if device_register fails, you have to do a put_device\nto let the ref counter release resources.\n\nHowever, the V4L2 API says that if video_register_device() fails, then\nyou have to call video_device_release(), which kfree()s the video_device\nstruct.\n\nBut the put_device() will already have freed the struct, so you end\nup in a double-free scenario.\n\nThere is not really a good way of fixing this without breaking\nvideo_register_device() into two parts, one that initializes everything,\nand one that does the actual device_register, and then converting all\nV4L2 drivers to this new model.\n\nThat is a massive job, and it is very unlikely that device_register\nwill fail.\n\nSo rather than ending up in a double-free scenario, just revert this\npatch, and in that case we'll have a small memory leak. Which is a lot\nmore robust.","Type":"Description","Title":"Revert \"media: v4l2-dev: fix error handling in __video_register_"}]}}}