Back

MEDIUM

s390/monwriter: Reject buffer reuse with different data length

Published Aug 15, 2026

Description

When data buffers are reused, e.g. for interval sample records, the first record determines the data length, and the size of the buffer for user copy. Current monwriter code does not check if the data length was changed for subsequent records, which also would never happen for valid user programs.

However, a malicious user could change the data length, resulting in out of bounds user copy to the kernel buffer, and memory corruption. By default, the monwriter misc device is created with root-only permissions, so practical impact is typically low.

Fix this by checking for changed data length and rejecting such records.

Affected products

Remediation

No remediation recorded yet.

Metrics

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Aug 15, 2026
Updated Aug 18, 2026
Reserved Aug 9, 2026
NVD
Status Received
Modified Aug 18, 2026
Red Hat
Severity Moderate
Public date Aug 15, 2026