{"id":"CVE-2021-47331","state":"PUBLISHED","title":"usb: common: usb-conn-gpio: fix NULL pointer dereference of charger","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: common: usb-conn-gpio: fix NULL pointer dereference of charger\n\nWhen power on system with OTG cable, IDDIG's interrupt arises before\nthe charger registration, it will cause a NULL pointer dereference,\nfix the issue by registering the power supply before requesting\nIDDIG/VBUS irq.","publishedAt":"2024-05-21T14:35:42.435Z","updatedAt":"2026-05-11T13:52:24.869Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"8e8d910e9a3a7fba86140aff4924c30955ab228b","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"436906fd248e018403bcda61a9311d9af02912f1","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"1a133a0996d6b4c83509d570ed4edcba34c44f25","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"880287910b1892ed2cb38977893b947382a09d21","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/common/usb-conn-gpio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.52","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.12.19","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13.4","status":"unaffected","lessThanOrEqual":"5.13.*","versionType":"semver"},{"version":"5.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/common/usb-conn-gpio.c"]}],"references":["https://git.kernel.org/stable/c/8e8d910e9a3a7fba86140aff4924c30955ab228b","https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1","https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25","https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47331.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47331","state":"PUBLISHED","datePublished":"2024-05-21T14:35:42.435Z","dateUpdated":"2026-05-11T13:52:24.869Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T14:28:16.975Z"},"containers":{"cna":{"title":"usb: common: usb-conn-gpio: fix NULL pointer dereference of charger","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: common: usb-conn-gpio: fix NULL pointer dereference of charger\n\nWhen power on system with OTG cable, IDDIG's interrupt arises before\nthe charger registration, it will cause a NULL pointer dereference,\nfix the issue by registering the power supply before requesting\nIDDIG/VBUS irq."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"8e8d910e9a3a7fba86140aff4924c30955ab228b","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"436906fd248e018403bcda61a9311d9af02912f1","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"1a133a0996d6b4c83509d570ed4edcba34c44f25","versionType":"git"},{"version":"e3ee0e740c3887d2293e8d54a8707218d70d86ca","status":"affected","lessThan":"880287910b1892ed2cb38977893b947382a09d21","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/common/usb-conn-gpio.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.52","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.12.19","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13.4","status":"unaffected","lessThanOrEqual":"5.13.*","versionType":"semver"},{"version":"5.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/common/usb-conn-gpio.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8e8d910e9a3a7fba86140aff4924c30955ab228b"},{"url":"https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1"},{"url":"https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25"},{"url":"https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:52:24.869Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.10.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.12.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.13.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-47331","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-23T18:02:23.364624Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:14:01.897Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/8e8d910e9a3a7fba86140aff4924c30955ab228b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:32:08.436Z"}}]}}}