EST. 2026 — Notes from real server work SYSADMIN · SECURITY · AI · DIRECTADMIN Issue 01
THE SYSADMIN ALMANAC
Home / Security Update / Ubuntu Patches rsyslog TLS Name Bypass and Log Spoofing—Check Now
Security Update

Ubuntu Patches rsyslog TLS Name Bypass and Log Spoofing—Check Now

by Ton-Or ·4 Dec 2026·7 min read
Ubuntu Patches rsyslog TLS Name Bypass and Log Spoofing—Check Now

Administrators of log receivers using gtls with x509/name or accepting messages from untrusted sources should check their settings and schedule urgent patching.

1-minute summary

Symptom / problem
rsyslog อาจยอมรับชื่อ TLS peer ผิด ปล่อยข้อความที่ควรทิ้ง และส่งอักขระควบคุมไปถึงปลายทาง
Who should read
Ubuntu ที่ใช้โมดูลและเงื่อนไขตามประกาศ โดยเฉพาะเครื่องรวมล็อกและเครื่องที่มีผู้ใช้หลายบัญชี
Fix in short
เทียบแพ็กเกจกับ USN-9527-1 อัปเดต rsyslog และโมดูลที่ติดตั้ง แล้วตรวจการรับส่งล็อกหลังรีสตาร์ต
Jump to steps

I saw Ubuntu USN-9527-1, dated 4 Dec. 2026, announcing rsyslog patches, so I broke down the conditions to check. The service may still write logs normally while accepting messages from senders impersonating a peer name. All five upstream advisories are dated 1 Dec. 2026, and their CVE ID fields still say No known CVE.

5.9CVSS 3.1 for TLS peer flaw
gtlsRequires x509/name
5 GHSADifferent impact conditions
USN-9527-1Ubuntu patches

What went wrong with TLS peer name checking

Starting with GHSA-2j6x-gq6h-q426, the flaw affects the GnuTLS driver, or gtls, when using StreamDriver.AuthMode="x509/name". The code searches the entire subject for CN=, so it may read a value inside OU or O as the Common Name. A certificate can therefore pass PermittedPeer even without a real CN matching an allowed name.

The attacker must have a certificate from a CA trusted by the system and must be able to choose its subject values. The system still validates the certificate chain normally. Untrusted self-signed certificates are still rejected. Upstream says it is not aware of any production system using a CA policy that allows this. If all the conditions are met, imtcp may accept logs as coming from an allowed sender.

Upstream rates this Moderate with a CVSS 3.1 score of 5.9. The attack requires complex conditions but has a high impact on data integrity. It affects versions 3.19.4 through 8.2610.0 using the settings above. It was fixed in the daily stable release dated 1 Dec. 2026.

Advisory What to check Upstream severity / CVSS 3.1 Vector
GHSA-2j6x-gq6h-q426 gtls, x509/name, PermittedPeer Moderate / 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
GHSA-gp9m-f4cv-wxvg imudp and rejected messages Moderate / 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
GHSA-3w8v-2pjp-5r8p imjournal and tag templates Low / 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
GHSA-pw82-9r22-hjqg imklog and unescaped output Low / 2.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
GHSA-rj3v-jjhc-8vpf imuxsock receiving ancillary data Moderate / 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Subject selectableIssued by trusted CAChain validationStill checked normallygtls misreads nameCN= inside OU or OPasses PermittedPeer; logs as allowed peerRequires: gtls with x509/name
The flaw is in name matching after certificate chain validation. The attacker still needs a certificate from a CA trusted by the system.

UDP ACLs and messages that are discarded but still written

GHSA-gp9m-f4cv-wxvg affects 8.1.0 through 8.2610.0. The rule engine does not check the discard status, so it still writes messages that should be dropped. If the UDP allowed-sender list contains a hostname or wildcard, the system accepts all senders, even if the list also contains IP addresses. Lists containing only IP addresses or networks still filter normally.

Rejected messages may still be written with control bytes and forged lines. Starting with version 8.2610.0, the default configuration also provides a way to trigger this issue. Using mmutf8fix mode="controlcharacters" may cause an out-of-bounds write that crashes rsyslogd. Upstream observed only crashes on 64-bit systems and did not report RCE. This flaw affects systems accepting messages from untrusted senders.

While waiting for patches, use only IP addresses or networks in UDP ACLs, along with a packet filter, because UDP source IP addresses can be spoofed. Avoid the mmutf8fix mode above. If you do not use legacy compression, set global(parser.supportCompressionExtension="off") to remove the path that can be triggered with the default configuration. Disabling this setting does not help when a parser chain is already configured to reject messages.

Local flaws in imjournal, imklog, and imuxsock

imjournal: GHSA-3w8v-2pjp-5r8p affects versions starting with 7.3.11. If imjournal is loaded and an output template writes tags without escaping them, a low-privilege process that can submit journal entries may insert newline characters into SYSLOG_IDENTIFIER or SYSLOG_PID. A single log entry can then become multiple lines. If forwarded over TCP with LF-delimited records, the receiver may interpret it as multiple records. While waiting for patches, escape tags and use octet-counted forwarding where supported, but changing the framing alone does not fix multiple lines in local files.

imklog: GHSA-pw82-9r22-hjqg affects 3.17.1 through 8.2610.0 when reading /proc/kmsg and the output does not escape %msg%. If the kernel logs a process name containing terminal escape sequences, those characters may change the text a viewer sees when opening the file in a terminal. While waiting for patches, use %msg:::escape-cc% in templates that receive kernel messages, including output sent to terminals.

Limits on code execution claims

The two sources describe the impact of the imklog flaw differently. Ubuntu says it could allow code execution, while upstream identifies the confirmed effects as control over terminal display and an impact on log integrity, with no memory safety impact. Sending escape sequences to all terminals also requires additional conditions. Upstream says Ubuntu with default permissions cannot send to those terminals. I therefore do not conclude that this set of flaws provides RCE over the network.

imuxsock: GHSA-rj3v-jjhc-8vpf affects the ancillary data receive path starting with 5.7.1 when the relevant options are enabled. Starting with 5.9.1, receiving timestamps enables this path by default on supported platforms. A local user who can send data to the module's Unix datagram socket may attach file descriptors through SCM_RIGHTS, and rsyslog does not close the received descriptors. Repeating this until the descriptor limit is reached may prevent rsyslog from opening files or making new connections. Files already open may still be written to. The service does not necessarily crash immediately.

Fixed Ubuntu packages and ESM entitlements

USN-9527-1 lists the following fixed rsyslog packages. Compare the full version number, including the Ubuntu revision. Looking only at the upstream version from rsyslogd -v may cause you to miss patches Ubuntu has already backported.

Ubuntu Fixed rsyslog version Channel
26.10 8.2608.0-4ubuntu3.1 Release updates
26.04 LTS 8.2512.0-1ubuntu4.4 Release updates
24.04 LTS 8.2312.0-3ubuntu9.6 Release updates
22.04 LTS 8.2112.0-2ubuntu2.7 Release updates
20.04 LTS 8.2001.0-1ubuntu1.3+esm2 Ubuntu Pro
18.04 LTS 8.32.0-1ubuntu4.2+esm2 Ubuntu Pro
16.04 LTS 8.16.0-1ubuntu3.1+esm4 Pro + Legacy Support
14.04 LTS 7.4.4-1ubuntu2.7+esm1 Pro + Legacy Support

The USN says the imjournal flaw does not affect Ubuntu 14.04 LTS, but this release still has other flaws that need patching. The upstream pages for imjournal and imklog still show Patched versions as None. The imuxsock page lists 2026-12-01 daily stable under Patched versions, but its text still says a fixed release has not been determined. The information on that page is inconsistent. I therefore use the Ubuntu package versions from the USN in the table and do not add upstream stable version numbers that these pages have not specified.

How to check and update, step by step

  1. Inspect Check package versions, loaded modules, and log sources
  2. Reduce exposure Restrict senders and apply workarounds that match your conditions while waiting for patches
  3. Update Check repositories and ESM entitlements before installing fixed packages
  4. Verify Check the config, restart, and test that logs reach their destination

Use the config search results as a starting point, then follow included files and check the settings actually in use.

cat /etc/os-release
dpkg-query -W -f='${Package}\t${Version}\n' 'rsyslog*'
apt-cache policy rsyslog rsyslog-gnutls
sudo grep -RniE 'gtls|x509/name|PermittedPeer|AllowedSender|allowedSender|imudp|imtcp|imjournal|imklog|imuxsock|mmutf8fix' /etc/rsyslog.conf /etc/rsyslog.d

For ESM releases, check entitlements with pro status as described in the Ubuntu Pro guide. For releases requiring Legacy Support, check that entitlement too. apt may not see the patches if it cannot access the repository.

Back up the config and schedule a restart window first. Update installed module packages too. This example also checks rsyslog-gnutls. If other extra modules are installed, include them in the same update cycle.

sudo apt update
sudo apt install --only-upgrade rsyslog
if dpkg-query -W -f='${Status}' rsyslog-gnutls 2>/dev/null | grep -qx 'install ok installed'; then
  sudo apt install --only-upgrade rsyslog-gnutls
fi
sudo rsyslogd -N1 && sudo systemctl restart rsyslog

For the TLS flaw, you can temporarily use x509/fingerprint, configuring fingerprints for all allowed peers. Another option is to set a CA policy that prevents certificate applicants from freely choosing subject values. After changing modes, test the peers you need to use.

Checking for compromise and deciding how urgently to patch

The five advisories I checked do not list IOCs or report actual attacks. This set of vulnerabilities is not in the KEV edition dated 3 Dec. 2026, according to CISA's JSON in its official repository, so there are no KEV addition dates or deadlines for this set. Absence from KEV does not mean there have been no attacks.

Check whether certificate subjects match the allowed peers. Look for logs from senders outside the ACL or conflicting metadata. Also check for control bytes and failures to open new files. These symptoms alone do not confirm an attack.

dpkg-query -W -f='${Package}\t${Version}\n' rsyslog
systemctl is-active rsyslog
sudo journalctl -u rsyslog --no-pager | cat -v
sudo tail /var/log/syslog | cat -v
logger -t rsyslog-check 'logging path verification'

Check that test messages reach their destination too. Even if logger sends successfully, you still need to test the journal, kernel, and TLS paths separately. cat -v helps display control bytes. You can also read the Debian server inspection guide.

Review log trustworthiness after patching

Patching does not establish the integrity of old logs. If anything looks abnormal, preserve the original copies and compare other evidence before drawing conclusions about the incident.

I recommend prioritizing patches for log collectors using gtls with x509/name or accepting messages from untrusted senders. Schedule other machines for the next available patching window, especially those with multiple local user accounts.

Sources: Ubuntu USN-9527-1 (https://ubuntu.com/security/notices/USN-9527-1), rsyslog TLS peer (https://github.com/rsyslog/rsyslog/security/advisories/GHSA-2j6x-gq6h-q426), rsyslog rejected messages (https://github.com/rsyslog/rsyslog/security/advisories/GHSA-gp9m-f4cv-wxvg), rsyslog imjournal (https://github.com/rsyslog/rsyslog/security/advisories/GHSA-3w8v-2pjp-5r8p), rsyslog imklog (https://github.com/rsyslog/rsyslog/security/advisories/GHSA-pw82-9r22-hjqg), rsyslog imuxsock (https://github.com/rsyslog/rsyslog/security/advisories/GHSA-rj3v-jjhc-8vpf), Ubuntu Pro ESM (https://ubuntu.com/pro-client/docs/en/latest/howtoguides/enable_esm_infra/) Information current as of 4 Dec. 2026. I'll come back and update this later.

Want us to set this up?

Get help with server setup, configuration, migration, or troubleshooting. Save time for the work that matters.

Get a quote

Hit something like this? Stuck somewhere?

Come trade notes on the LinuxThai board

→ Continue on the board

Comments 0

No comments yet — be the first