CVE-2024-50271

signal: restore the override_rlimit logic

Medium · published November 19, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
13.6
In the wild
Unconfirmed
What it is

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

signal: restore the override_rlimit logic

Prior to commit d64696905554 ("Reimplement RLIMIT_SIGPENDING on top of

ucounts") UCOUNT_RLIMIT_SIGPENDING rlimit was not enforced for a class of

signals. However now it's enforced unconditionally, even if

override_rlimit is set. This behavior change caused production issues.

For example, if the limit is reached and a process receives a SIGSEGV

signal, sigqueue_alloc fails to allocate the necessary resources for the

signal delivery, preventing the signal from being delivered with siginfo.

This prevents the process from correctly identifying the fault address and

handling the error. From the user-space perspective, applications are

unaware that the limit has been reached and that the siginfo is

effectively 'corrupted'. This can lead to unpredictable behavior and

crashes, as we observed with java applications.

Fix this by passing override_rlimit into inc_rlimit_get_ucounts() and skip

the comparison to max there if override_rlimit is set. This effectively

restores the old behavior.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00234 · 13.6th percentile
Published
2024-11-19T01:30Z
EPSS history
Timeline
  • 19 NOV 01:30Z
    signal: restore the override_rlimit logic
    cvelistv5