AZL-117923: CVE-2026-143009 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

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

vt: serialise the producers of the flip buffer

Typing on a virtual console while the console replies to an escape sequence can make the kernel write past the end of a buffer. A user who can write to the foreground console can cause this on purpose if they can also inject key events, through /dev/uinput or by writing to the /dev/input/event node of a keyboard.

Input for a tty goes through the flip buffer of its port. A driver inserts the data with ttyinsertflip() and then calls ttyflipbufferpush() to pass it on to the line discipline. The insert functions take no lock: they check that the current struct ttybuffer has room, copy the data to offset ->used, and then advance ->used. So a flip buffer supports only one producer at a time, and a driver that has several must serialise them.

Four functions feed the flip buffer of a virtual console:

- putqueue(), putsqueue() and fnsendintr() insert typed characters and breaks for the keyboard handler. They run under kbdeventlock. - respondstring() inserts the reply when a program writes an escape sequence that requests one, such as a cursor position report. It runs under the console lock.

The keyboard handler gets its events from the input layer and feeds the foreground console. Key events that a program writes to /dev/uinput or to an event node reach it in the same way as typed keys.

The keyboard handler and respondstring() share no lock, so they can interleave:

keyboard handler respondstring() ================ ================ room check passes room check passes memcpy() to offset used used += len memcpy() to offset used used += len / used > size of the buffer /

The room check subtracts ->used from the size, and both are unsigned. Once ->used exceeds the size, the result wraps, so the check always passes, and each later insert lands further past the buffer.

Reproduced as root, with keys from a uinput keyboard and cursor position reports on the same console: KFENCE reported an out-of-bounds write 1,024 bytes past the buffer in under 10 s.

Fix this by taking port->lock, with interrupts disabled, around the insert and the push in these four functions. kbdkeycode() already takes port->lock under kbdeventlock, so this lock ordering is not new.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In put_queue(), puts_queue(), fn_send_intr(), and respond_string(), take port->lock with interrupts disabled around the flip-buffer insert and tty_flip_buffer_push().

Event History

Dec 3, 2026
Advisory Published
via OSV·10:17 AM
Data Sourced
via OSV·10:17 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What access does an attacker need to trigger this issue?

The attacker needs to be able to write to the foreground virtual console and also inject keyboard events. The described injection paths are /dev/uinput or writing to a keyboard's /dev/input/event* node.

2

When is the vulnerable race reachable?

It can occur when typing on a virtual console while the console is generating a reply to an escape sequence, such as a cursor position report. The concurrent keyboard and escape-sequence reply paths can produce unsynchronised writes to the console flip buffer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203