# CVE-2023-52973: vc\_screen: move load of struct vc\_data pointer in vcs\_read() to avoid UAF

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-03-27T16:43:12.756Z
- **Modified:** 2026-08-05T09:12:11.113Z

## Who should check

- Anyone running Linux \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< af79ea9a2443016f64d8fd8d72020cc874f0e066; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 6332f52f44b9776568bf3c0b714ddfb0bb175e78; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< d0332cbf53dad06a22189cc341391237f4ea6d9f; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 55515d7d8743b71b80bfe68e89eb9d92630626ab; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< fc9e27f3ba083534b8bbf72ab0f5c810ffdc7d18; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 8506f16aae9daf354e3732bcfd447e2a97f023df; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 226fae124b2dac217ea5436060d623ff3385bc34
- Anyone running Linux 2.6.38

## Description

In the Linux kernel, the following vulnerability has been resolved:

vc\_screen: move load of struct vc\_data pointer in vcs\_read() to avoid UAF

After a call to console\_unlock() in vcs\_read() the vc\_data struct can be
freed by vc\_deallocate(). Because of that, the struct vc\_data pointer
load must be done at the top of while loop in vcs\_read() to avoid a UAF
when vcs\_size() is called.

Syzkaller reported a UAF in vcs\_size().

BUG: KASAN: use-after-free in vcs\_size (drivers/tty/vt/vc\_screen.c:215)
Read of size 4 at addr ffff8881137479a8 by task 4a005ed81e27e65/1537

CPU: 0 PID: 1537 Comm: 4a005ed81e27e65 Not tainted 6.2.0-rc5 \#1
Hardware name: Red Hat KVM, BIOS 1.15.0-2.module
Call Trace:
  \<TASK\>
\_\_asan\_report\_load4\_noabort (mm/kasan/report\_generic.c:350)
vcs\_size (drivers/tty/vt/vc\_screen.c:215)
vcs\_read (drivers/tty/vt/vc\_screen.c:415)
vfs\_read (fs/read\_write.c:468 fs/read\_write.c:450)
...
  \</TASK\>

Allocated by task 1191:
...
kmalloc\_trace (mm/slab\_common.c:1069)
vc\_allocate (./include/linux/slab.h:580 ./include/linux/slab.h:720
     drivers/tty/vt/vt.c:1128 drivers/tty/vt/vt.c:1108)
con\_install (drivers/tty/vt/vt.c:3383)
tty\_init\_dev (drivers/tty/tty\_io.c:1301 drivers/tty/tty\_io.c:1413
     drivers/tty/tty\_io.c:1390)
tty\_open (drivers/tty/tty\_io.c:2080 drivers/tty/tty\_io.c:2126)
chrdev\_open (fs/char\_dev.c:415)
do\_dentry\_open (fs/open.c:883)
vfs\_open (fs/open.c:1014)
...

Freed by task 1548:
...
kfree (mm/slab\_common.c:1021)
vc\_port\_destruct (drivers/tty/vt/vt.c:1094)
tty\_port\_destructor (drivers/tty/tty\_port.c:296)
tty\_port\_put (drivers/tty/tty\_port.c:312)
vt\_disallocate\_all (drivers/tty/vt/vt\_ioctl.c:662 (discriminator 2))
vt\_ioctl (drivers/tty/vt/vt\_ioctl.c:903)
tty\_ioctl (drivers/tty/tty\_io.c:2776)
...

The buggy address belongs to the object at ffff888113747800
  which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 424 bytes inside of
  1024-byte region \[ffff888113747800, ffff888113747c00)

The buggy address belongs to the physical page:
page:00000000b3fe6c7c refcount:1 mapcount:0 mapping:0000000000000000
     index:0x0 pfn:0x113740
head:00000000b3fe6c7c order:3 compound\_mapcount:0 subpages\_mapcount:0
     compound\_pincount:0
anon flags: 0x17ffffc0010200(slab\|head\|node=0\|zone=2\|lastcpupid=0x1fffff)
raw: 0017ffffc0010200 ffff888100042dc0 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
  ffff888113747880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
  ffff888113747900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
\> ffff888113747980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                   ^
  ffff888113747a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
  ffff888113747a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Disabling lock debugging due to kernel taint

## Affected and fixed versions

- Linux: \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< af79ea9a2443016f64d8fd8d72020cc874f0e066; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 6332f52f44b9776568bf3c0b714ddfb0bb175e78; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< d0332cbf53dad06a22189cc341391237f4ea6d9f; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 55515d7d8743b71b80bfe68e89eb9d92630626ab; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< fc9e27f3ba083534b8bbf72ab0f5c810ffdc7d18; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 8506f16aae9daf354e3732bcfd447e2a97f023df; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 226fae124b2dac217ea5436060d623ff3385bc34 (cvelist)
- Linux: 2.6.38 (cvelist)

## Mitigation

- Upgrade Linux to 226fae124b2dac217ea5436060d623ff3385bc34 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52973. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52973.md
Affected: Linux >= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, < af79ea9a2443016f64d8fd8d72020cc874f0e066; >= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, < 6332f52f44b9776568bf3c0b714ddfb0bb175e78; >= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, < d0332cbf53dad06a22189cc341391237f4ea6d9f; >= ac751efa6a0d70f2c9daef5…
Fixed in: Linux 6332f52f44b9776568bf3c0b714ddfb0bb175e78, Linux 55515d7d8743b71b80bfe68e89eb9d92630626ab, Linux 8506f16aae9daf354e3732bcfd447e2a97f023df, Linux 226fae124b2dac217ea5436060d623ff3385bc34

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52973 being exploited?

There is no confirmed exploitation: CVE-2023-52973 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-52973?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52973?

Linux \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< af79ea9a2443016f64d8fd8d72020cc874f0e066; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 6332f52f44b9776568bf3c0b714ddfb0bb175e78; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< d0332cbf53dad06a22189cc341391237f4ea6d9f; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 55515d7d8743b71b80bfe68e89eb9d92630626ab; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< fc9e27f3ba083534b8bbf72ab0f5c810ffdc7d18; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 8506f16aae9daf354e3732bcfd447e2a97f023df; \>= ac751efa6a0d70f2c9daef5c7e3a92270f5c2dff, \< 226fae124b2dac217ea5436060d623ff3385bc34; Linux 2.6.38.

### Is there a fix for CVE-2023-52973?

Yes. Fixed in Linux 6332f52f44b9776568bf3c0b714ddfb0bb175e78, Linux 55515d7d8743b71b80bfe68e89eb9d92630626ab, Linux 8506f16aae9daf354e3732bcfd447e2a97f023df, Linux 226fae124b2dac217ea5436060d623ff3385bc34. Upgrade Linux to 226fae124b2dac217ea5436060d623ff3385bc34 or later.

### How do I check if I'm affected by CVE-2023-52973?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/af79ea9a2443016f64d8fd8d72020cc874f0e066>
- patch: <https://git.kernel.org/stable/c/6332f52f44b9776568bf3c0b714ddfb0bb175e78>
- patch: <https://git.kernel.org/stable/c/d0332cbf53dad06a22189cc341391237f4ea6d9f>
- patch: <https://git.kernel.org/stable/c/55515d7d8743b71b80bfe68e89eb9d92630626ab>
- patch: <https://git.kernel.org/stable/c/fc9e27f3ba083534b8bbf72ab0f5c810ffdc7d18>
- patch: <https://git.kernel.org/stable/c/8506f16aae9daf354e3732bcfd447e2a97f023df>
- patch: <https://git.kernel.org/stable/c/226fae124b2dac217ea5436060d623ff3385bc34>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52973>

HTML: <https://flawdb.com/CVE-2023-52973> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52973>
