CVE-2021-47603

audit: improve robustness of the audit queue handling

No CVSS score yet EPSS 0.18%

Published 19 Jun 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2021-47603

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47603 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

audit: improve robustness of the audit queue handling

If the audit daemon were ever to get stuck in a stopped state the kernel's kauditd_thread() could get blocked attempting to send audit records to the userspace audit daemon. With the kernel thread blocked it is possible that the audit queue could grow unbounded as certain audit record generating events must be exempt from the queue limits else the system enter a deadlock state.

This patch resolves this problem by lowering the kernel thread's socket sending timeout from MAX_SCHEDULE_TIMEOUT to HZ/10 and tweaks the kauditd_send_queue() function to better manage the various audit queues when connection problems occur between the kernel and the audit daemon. With this patch, the backlog may temporarily grow beyond the defined limits when the audit daemon is stopped and the system is under heavy audit pressure, but kauditd_thread() will continue to make progress and drain the queues as it would for other connection problems. For example, with the audit daemon put into a stopped state and the system configured to audit every syscall it was still possible to shutdown the system without a kernel panic, deadlock, etc.; granted, the system was slow to shutdown but that is to be expected given the extreme pressure of recording every syscall.

The timeout value of HZ/10 was chosen primarily through experimentation and this developer's "gut feeling". There is likely no one perfect value, but as this scenario is limited in scope (root privileges would be needed to send SIGSTOP to the audit daemon), it is likely not worth exposing this as a tunable at present. This can always be done at a later date if it proves necessary.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.92% of all scored CVEs. Scores of 2 Dec 2026.

The assessment of CISA (SSVC, 20 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before 75fdb751f84727d614deea0571a1490c3225d83a
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before 8389f50ceb854cb437fefb9330d5024ed3c7c1f5
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before 0d3277eabd542fb662be23696e5ec9f390d688e1
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before 4cc6badff97f74d0fce65f9784b5df3b64e4250b
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before a5f4d17daf2e6cd7c1d9676b476147f6b4ac53f2
affected from 5b52330bbfe63b3305765354d6046c9f7f89c011, before f4b3ee3c85551d2d343a3ba159304066523f730f
affected a0c48115cd2343231585f2f5e609b2ac9aa4e0af
affected from 4.10.7, before 4.11
Other versions: unaffected
Linux
affected 4.11
unaffected before 4.11
unaffected from 4.14.259 up to and including 4.14.*
unaffected from 4.19.222 up to and including 4.19.*
unaffected from 5.4.168 up to and including 5.4.*
unaffected from 5.10.88 up to and including 5.10.*
unaffected from 5.15.11 up to and including 5.15.*
unaffected 5.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47603 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47603

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47603
trivy image --scanners vuln IMAGE | grep CVE-2021-47603

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47603 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.