{"id":"CVE-2026-43460","state":"PUBLISHED","title":"spi: rockchip-sfc: Fix double-free in remove() callback","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: rockchip-sfc: Fix double-free in remove() callback\n\nThe driver uses devm_spi_register_controller() for registration, which\nautomatically unregisters the controller via devm cleanup when the\ndevice is removed. The manual call to spi_unregister_controller() in\nthe remove() callback can lead to a double-free.\n\nAnd to make sure controller is unregistered before DMA buffer is\nunmapped, switch to use spi_register_controller() in probe().","publishedAt":"2026-05-08T14:22:23.332Z","updatedAt":"2026-05-11T22:25:00.962Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"b6051f2bdd4bd3dde85b68558edd3a6843489221","versionType":"git"},{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"85fb53351e6a3b921357a2178671e847a087e400","versionType":"git"},{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"111e2863372c322e836e0c896f6dd9cf4ee08c71","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-rockchip-sfc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.19","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.9","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-rockchip-sfc.c"]}],"references":["https://git.kernel.org/stable/c/b6051f2bdd4bd3dde85b68558edd3a6843489221","https://git.kernel.org/stable/c/85fb53351e6a3b921357a2178671e847a087e400","https://git.kernel.org/stable/c/111e2863372c322e836e0c896f6dd9cf4ee08c71"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/43xxx/CVE-2026-43460.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43460","state":"PUBLISHED","datePublished":"2026-05-08T14:22:23.332Z","dateUpdated":"2026-05-11T22:25:00.962Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-01T14:12:56.010Z"},"containers":{"cna":{"title":"spi: rockchip-sfc: Fix double-free in remove() callback","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: rockchip-sfc: Fix double-free in remove() callback\n\nThe driver uses devm_spi_register_controller() for registration, which\nautomatically unregisters the controller via devm cleanup when the\ndevice is removed. The manual call to spi_unregister_controller() in\nthe remove() callback can lead to a double-free.\n\nAnd to make sure controller is unregistered before DMA buffer is\nunmapped, switch to use spi_register_controller() in probe()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"b6051f2bdd4bd3dde85b68558edd3a6843489221","versionType":"git"},{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"85fb53351e6a3b921357a2178671e847a087e400","versionType":"git"},{"version":"8011709906d0d6ff1ba9589de5a906bf6e430782","status":"affected","lessThan":"111e2863372c322e836e0c896f6dd9cf4ee08c71","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-rockchip-sfc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.19","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.9","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-rockchip-sfc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b6051f2bdd4bd3dde85b68558edd3a6843489221"},{"url":"https://git.kernel.org/stable/c/85fb53351e6a3b921357a2178671e847a087e400"},{"url":"https://git.kernel.org/stable/c/111e2863372c322e836e0c896f6dd9cf4ee08c71"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:25:00.962Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.19.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}