Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-52503— tee: amdtee: fix use-after-free vulnerability in amdtee_close_session

CVSS 7.8 · High EPSS 0.26% · P18

Possible ATT&CK Techniques 1AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 12

VendorProductVersion RangeStatus
LinuxLinux757cc3e9ff1d72d014096399d6e2bf03974d9da1< da7ce52a2f6c468946195b116615297d3d113a27affected
757cc3e9ff1d72d014096399d6e2bf03974d9da1< 1680c82929bc14d706065f123dab77f2f1293116affected
757cc3e9ff1d72d014096399d6e2bf03974d9da1< 60c3e7a00db954947c265b55099c21b216f2a05caffected
757cc3e9ff1d72d014096399d6e2bf03974d9da1< 1c95574350cd63bc3c5c2fa06658010768f2a0ceaffected
757cc3e9ff1d72d014096399d6e2bf03974d9da1< f4384b3e54ea813868bb81a861bf5b2406e15d8faffected
5.6affected
< 5.6unaffected
5.10.199≤ 5.10.*unaffected
… +4 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2023-52503

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
tee: amdtee: fix use-after-free vulnerability in amdtee_close_session
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: tee: amdtee: fix use-after-free vulnerability in amdtee_close_session There is a potential race condition in amdtee_close_session that may cause use-after-free in amdtee_open_session. For instance, if a session has refcount == 1, and one thread tries to free this session via: kref_put(&sess->refcount, destroy_session); the reference count will get decremented, and the next step would be to call destroy_session(). However, if in another thread, amdtee_open_session() is called before destroy_session() has completed execution, alloc_session() may return 'sess' that will be freed up later in destroy_session() leading to use-after-free in amdtee_open_session. To fix this issue, treat decrement of sess->refcount and removal of 'sess' from session list in destroy_session() as a critical section, so that it is executed atomically.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于内存释放后重用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 757cc3e9ff1d72d014096399d6e2bf03974d9da1 ~ da7ce52a2f6c468946195b116615297d3d113a27 -
LinuxLinux 5.6 -

II. Public POCs for CVE-2023-52503

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-52503

登录查看更多情报信息。

Other References for CVE-2023-52503 (5)

Same Patch Batch · Linux · 2024-03-02 · 57 CVEs total

CVE-2023-525159.8 CRITICALRDMA/srp: Do not call scsi_done() from srp_abort()
CVE-2023-525308.8 HIGHwifi: mac80211: fix potential key use-after-free
CVE-2023-525228.8 HIGHnet: fix possible store tearing in neigh_periodic_work()
CVE-2023-525028.8 HIGHnet: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
CVE-2024-266218.2 HIGHmm: huge_memory: don't force huge page alignment on 32 bit
CVE-2023-525727.8 HIGHcifs: Fix UAF in cifs_demultiplex_thread()
CVE-2023-525747.8 HIGHteam: fix null-ptr-deref when team device type is changed
CVE-2023-525097.8 HIGHravb: Fix use-after-free issue in ravb_tx_timeout_work()
CVE-2023-525177.8 HIGHspi: sun6i: fix race between DMA RX transfer completion and RX FIFO drain
CVE-2023-525237.8 HIGHbpf, sockmap: Reject sk_msg egress redirects to non-TCP sockets
CVE-2023-525137.5 HIGHRDMA/siw: Fix connection failure handling
CVE-2023-525657.1 HIGHmedia: uvcvideo: Fix OOB read
CVE-2023-52561arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved
CVE-2023-52581netfilter: nf_tables: fix memleak when more than 255 elements expired
CVE-2023-52564Revert "tty: n_gsm: fix UAF in gsm_cleanup_mux"
CVE-2023-52563drm/meson: fix memory leak on ->hpd_notify callback
CVE-2023-52562mm/slab_common: fix slab_caches list corruption after kmem_cache_destroy()
CVE-2022-48627vt: fix memory overlapping when deleting chars in the buffer
CVE-2023-52518Bluetooth: hci_codec: Fix leaking content of local_codecs
CVE-2023-52559iommu/vt-d: Avoid memory allocation in iommu_suspend()

Showing top 20 of 57 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-52503

No comments yet


Leave a comment