{"id":"CVE-2026-31729","state":"PUBLISHED","title":"usb: typec: ucsi: validate connector number in ucsi_notify_common()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: validate connector number in ucsi_notify_common()\n\nThe connector number extracted from CCI via UCSI_CCI_CONNECTOR() is a\n7-bit field (0-127) that is used to index into the connector array in\nucsi_connector_change(). However, the array is only allocated for the\nnumber of connectors reported by the device (typically 2-4 entries).\n\nA malicious or malfunctioning device could report an out-of-range\nconnector number in the CCI, causing an out-of-bounds array access in\nucsi_connector_change().\n\nAdd a bounds check in ucsi_notify_common(), the central point where CCI\nis parsed after arriving from hardware, so that bogus connector numbers\nare rejected before they propagate further.","publishedAt":"2026-05-01T14:14:28.868Z","updatedAt":"2026-05-11T22:14:37.986Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"f6dcbf2b024d55549959402f1db6c614e51d52cb","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"f4e608fe12b7ac6a4a57176ab0296bb5a110a078","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"98429e9ec89a5e3a204112dfaa2dbe6ca28493a0","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"d2d8c17ac01a1b1f638ea5d340a884ccc5015186","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.12.81","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","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/usb/typec/ucsi/ucsi.c"]}],"references":["https://git.kernel.org/stable/c/f6dcbf2b024d55549959402f1db6c614e51d52cb","https://git.kernel.org/stable/c/f4e608fe12b7ac6a4a57176ab0296bb5a110a078","https://git.kernel.org/stable/c/98429e9ec89a5e3a204112dfaa2dbe6ca28493a0","https://git.kernel.org/stable/c/d2d8c17ac01a1b1f638ea5d340a884ccc5015186"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31729.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31729","state":"PUBLISHED","datePublished":"2026-05-01T14:14:28.868Z","dateUpdated":"2026-05-11T22:14:37.986Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.134Z"},"containers":{"cna":{"title":"usb: typec: ucsi: validate connector number in ucsi_notify_common()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: validate connector number in ucsi_notify_common()\n\nThe connector number extracted from CCI via UCSI_CCI_CONNECTOR() is a\n7-bit field (0-127) that is used to index into the connector array in\nucsi_connector_change(). However, the array is only allocated for the\nnumber of connectors reported by the device (typically 2-4 entries).\n\nA malicious or malfunctioning device could report an out-of-range\nconnector number in the CCI, causing an out-of-bounds array access in\nucsi_connector_change().\n\nAdd a bounds check in ucsi_notify_common(), the central point where CCI\nis parsed after arriving from hardware, so that bogus connector numbers\nare rejected before they propagate further."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"f6dcbf2b024d55549959402f1db6c614e51d52cb","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"f4e608fe12b7ac6a4a57176ab0296bb5a110a078","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"98429e9ec89a5e3a204112dfaa2dbe6ca28493a0","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"d2d8c17ac01a1b1f638ea5d340a884ccc5015186","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.12.81","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","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/usb/typec/ucsi/ucsi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f6dcbf2b024d55549959402f1db6c614e51d52cb"},{"url":"https://git.kernel.org/stable/c/f4e608fe12b7ac6a4a57176ab0296bb5a110a078"},{"url":"https://git.kernel.org/stable/c/98429e9ec89a5e3a204112dfaa2dbe6ca28493a0"},{"url":"https://git.kernel.org/stable/c/d2d8c17ac01a1b1f638ea5d340a884ccc5015186"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:14:37.986Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.12.81"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.18.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}