{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53047","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T07:18:43.828Z","datePublished":"2025-05-02T15:55:04.071Z","dateUpdated":"2026-08-05T09:12:32.691Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T09:12:32.691Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntee: amdtee: fix race condition in amdtee_open_session\n\nThere is a potential race condition in amdtee_open_session that may\nlead to use-after-free. For instance, in amdtee_open_session() after\nsess->sess_mask is set, and before setting:\n\n    sess->session_info[i] = session_info;\n\nif amdtee_close_session() closes this same session, then 'sess' data\nstructure will be released, causing kernel panic when 'sess' is\naccessed within amdtee_open_session().\n\nThe solution is to set the bit sess->sess_mask as the last step in\namdtee_open_session()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached via local TEE ioctls (TEE_IOC_OPEN_SESSION / TEE_IOC_CLOSE_SESSION) on /dev/tee*, not via network packet processing or adjacent-link protocols.\nAC:L - The attacker drives both sides of the race with concurrent open/close ioctls on the same context; after one successful open the ta_handle is known and further session IDs are computable, and the window spans the slow TEE firmware open call.\nPR:L - tee_open/ioctl paths have no capability checks; access depends on /dev/tee* permissions, which are commonly 0660 root:tee and usable by unprivileged processes in the tee group (or equivalent Android/embedded TEE clients).\nUI:N - Exploitation requires only the attacker's own open/close ioctl sequence; no separate victim action is needed.\nS:U - This is a host-kernel use-after-free enabling privilege escalation within the same OS security authority, not a VM escape or IOMMU/sandbox boundary cross.\nC:H - The race frees struct amdtee_session while open_session still accesses it; that UAF can be turned into an arbitrary kernel read via heap reuse.\nI:H - The same UAF of the session object enables heap spraying and write/control-flow primitives for integrity compromise or code execution.\nA:H - The commit documents kernel panic on the freed sess access, and UAFs reliably cause oops/panic even when not fully exploited."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tee/amdtee/core.c"],"versions":[{"version":"757cc3e9ff1d72d014096399d6e2bf03974d9da1","lessThan":"f632a90f8e39db39b322107b9a8d438b826a7f4f","status":"affected","versionType":"git"},{"version":"757cc3e9ff1d72d014096399d6e2bf03974d9da1","lessThan":"02b296978a2137d7128151c542e84dc96400bc00","status":"affected","versionType":"git"},{"version":"757cc3e9ff1d72d014096399d6e2bf03974d9da1","lessThan":"a63cce9393e4e7dbc5af82dc87e68cb321cb1a78","status":"affected","versionType":"git"},{"version":"757cc3e9ff1d72d014096399d6e2bf03974d9da1","lessThan":"b3ef9e6fe09f1a132af28c623edcf4d4f39d9f35","status":"affected","versionType":"git"},{"version":"757cc3e9ff1d72d014096399d6e2bf03974d9da1","lessThan":"f8502fba45bd30e1a6a354d9d898bc99d1a11e6d","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tee/amdtee/core.c"],"versions":[{"version":"5.6","status":"affected"},{"version":"0","lessThan":"5.6","status":"unaffected","versionType":"semver"},{"version":"5.10.177","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.105","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.22","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2.9","lessThanOrEqual":"6.2.*","status":"unaffected","versionType":"semver"},{"version":"6.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.10.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.15.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.1.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.3"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/f632a90f8e39db39b322107b9a8d438b826a7f4f"},{"url":"https://git.kernel.org/stable/c/02b296978a2137d7128151c542e84dc96400bc00"},{"url":"https://git.kernel.org/stable/c/a63cce9393e4e7dbc5af82dc87e68cb321cb1a78"},{"url":"https://git.kernel.org/stable/c/b3ef9e6fe09f1a132af28c623edcf4d4f39d9f35"},{"url":"https://git.kernel.org/stable/c/f8502fba45bd30e1a6a354d9d898bc99d1a11e6d"}],"title":"tee: amdtee: fix race condition in amdtee_open_session","x_generator":{"engine":"bippy-1.2.0"}}}}