CVE-2024-47118
IBM Db2 vulnerability analysis and mitigation

Overview

CVE-2021-47118 is a use-after-free vulnerability in the Linux kernel that affects the initialization of cad_pid. The vulnerability was discovered during fuzzing of Linux kernel version 5.13-rc3 with Syzkaller, though it has existed since the conversion of cad_pid to struct pid in version 2.6.19. The issue affects multiple versions of the Linux kernel from version 2.6.19 through various 5.x releases (NVD).

Technical details

The vulnerability occurs during boot when kernelinitfreeable() initializes cad_pid to the init task's struct pid. When cad_pid is changed via sysctl, procdocadpid() increments the refcount on the new pid via getpid() and decrements the refcount on the old pid via putpid(). Since getpid() was never called during initialization, this leads to decrementing a reference that was never incremented, potentially freeing the init task's struct pid prematurely. This can result in dangling references to the struct pid and subsequent use-after-free conditions when delivering signals (NVD).

Impact

The vulnerability can lead to use-after-free conditions in the kernel, potentially causing system crashes or other undefined behavior when delivering signals. The CVSS v3.1 base score is 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements but high potential impact on system confidentiality, integrity, and availability (NVD).

Mitigation and workarounds

The fix involves getting a reference to the init task's struct pid when assigning it to cad_pid during initialization. This has been addressed in various kernel versions through patches. Red Hat has included fixes in their kernel updates, such as kernel-rt version 4.18.0-553.5.1.rt7.346.el8_10 for Red Hat Enterprise Linux 8 (Red Hat Portal).

Additional resources


SourceThis report was generated using AI

Related IBM Db2 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-36186HIGH7.8
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoNoNov 07, 2025
CVE-2025-36008MEDIUM6.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 2025
CVE-2025-36185MEDIUM5.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoNoNov 07, 2025
CVE-2025-36136MEDIUM5.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 2025
CVE-2025-36131MEDIUM4.6
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management