{"id":"CVE-2024-35924","state":"PUBLISHED","title":"usb: typec: ucsi: Limit read size on v1.2","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: Limit read size on v1.2\n\nBetween UCSI 1.2 and UCSI 2.0, the size of the MESSAGE_IN region was\nincreased from 16 to 256. In order to avoid overflowing reads for older\nsystems, add a mechanism to use the read UCSI version to truncate read\nsizes on UCSI v1.2.","publishedAt":"2024-05-19T10:10:35.044Z","updatedAt":"2026-10-30T12:18:20.791Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"af9bdf05557dc21040df2f11062133dd1e503a09","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"266f403ec47573046dee4bcebda82777ce702c40","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"0defcaa09d3b21e8387829ee3a652c43fa91e13f","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"b3db266fb031fba88c423d4bb8983a73a3db6527","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi.c","drivers/usb/typec/ucsi/ucsi.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.27","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.6","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","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","drivers/usb/typec/ucsi/ucsi.h"]}],"references":["https://git.kernel.org/stable/c/af9bdf05557dc21040df2f11062133dd1e503a09","https://git.kernel.org/stable/c/266f403ec47573046dee4bcebda82777ce702c40","https://git.kernel.org/stable/c/0defcaa09d3b21e8387829ee3a652c43fa91e13f","https://git.kernel.org/stable/c/b3db266fb031fba88c423d4bb8983a73a3db6527"],"weaknesses":[],"ingestedAt":"2026-10-30T12:34:06.950Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35924.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35924","state":"PUBLISHED","datePublished":"2024-05-19T10:10:35.044Z","dateUpdated":"2026-10-30T12:18:20.791Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T13:50:33.125Z"},"containers":{"cna":{"title":"usb: typec: ucsi: Limit read size on v1.2","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: Limit read size on v1.2\n\nBetween UCSI 1.2 and UCSI 2.0, the size of the MESSAGE_IN region was\nincreased from 16 to 256. In order to avoid overflowing reads for older\nsystems, add a mechanism to use the read UCSI version to truncate read\nsizes on UCSI v1.2."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"af9bdf05557dc21040df2f11062133dd1e503a09","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"266f403ec47573046dee4bcebda82777ce702c40","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"0defcaa09d3b21e8387829ee3a652c43fa91e13f","versionType":"git"},{"version":"bdc62f2bae8fb0e8e99574de5232f0a3c54a27df","status":"affected","lessThan":"b3db266fb031fba88c423d4bb8983a73a3db6527","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi.c","drivers/usb/typec/ucsi/ucsi.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.27","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.6","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","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","drivers/usb/typec/ucsi/ucsi.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/af9bdf05557dc21040df2f11062133dd1e503a09"},{"url":"https://git.kernel.org/stable/c/266f403ec47573046dee4bcebda82777ce702c40"},{"url":"https://git.kernel.org/stable/c/0defcaa09d3b21e8387829ee3a652c43fa91e13f"},{"url":"https://git.kernel.org/stable/c/b3db266fb031fba88c423d4bb8983a73a3db6527"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The UCSI core is a local platform driver (ACPI OpRegion, I2C, or pmic_glink transport) with no network or adjacent-network exposure; the over-read is driven by local UCSI transactions and the leaked bytes are harvested locally through /sys/class/typec and /sys/class/power_supply attributes or the UCSI debugfs response file.\nAC:L - There is no race and no dependence on memory layout the attacker cannot influence — any UCSI command requesting more than 16 bytes on a PPM reporting version ≤1.2 deterministically reads past the MESSAGE_IN window, and UCSI 1.x PPMs were the common case on shipping hardware.\nPR:L - The typec class attributes populated from the over-read buffers (usb_power_delivery_revision, number_of_alternate_modes, power_operation_mode, supported_accessory_modes) and the ucsi power-supply properties derived from src_pdos are all DEVICE_ATTR_RO/0444, so an ordinary unprivileged local user can read the disclosed bytes; no capability or root is required to observe the leak.\nUI:N - The oversized MESSAGE_IN reads are issued by the driver itself during registration, resume, and connector-change work handling; no victim action is needed for the out-of-bounds access to occur or for its results to be exposed.\nS:U - The out-of-bounds read stays within the kernel's own memory (memremap'd OpRegion, or the slab objects backing struct pmic_glink_ucsi / struct ucsi_ccg) and is consumed by the same kernel; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Up to 240 bytes beyond the 16-byte MESSAGE_IN window can be copied out — past read_buf[48] inside struct pmic_glink_ucsi, past the trailing op_data member of struct ucsi_ccg, or past the ACPI OpRegion — which is far more than a strictly bounded few-byte read and can expose adjacent heap contents (including pointers) through world-readable sysfs.\nI:N - The defect is purely an over-long read; every destination buffer is sized to the requested length, so no out-of-bounds write, allocation-size confusion, or control-flow corruption primitive is created.\nA:H - Reading hundreds of bytes past the end of a memremap'd ACPI/MMIO OpRegion can fault on platforms where the mapping does not extend that far, and the slab over-reads in the ccg and glink backends trip KASAN, so the bug can take the machine down."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:18:20.791Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.6.27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.8.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-35924","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-20T15:11:13.299971Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:34:40.719Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/266f403ec47573046dee4bcebda82777ce702c40","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0defcaa09d3b21e8387829ee3a652c43fa91e13f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b3db266fb031fba88c423d4bb8983a73a3db6527","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:21:48.935Z"}}]}}}