Menu

Star on GitHub · 3.2k

CVE-2022-48970

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: af_unix: Get user_ns from in_skb in unix_diag_get_exact().

Published Oct 21, 2024CWE-476EPSS 0.24%

Overview

CVE-2022-48970 is a medium-severity vulnerability. It was published on October 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

af_unix: Get user_ns from in_skb in unix_diag_get_exact().

Wei Chen reported a NULL deref in sk_user_ns() [0][1], and Paolo diagnosed

the root cause: in unix_diag_get_exact(), the newly allocated skb does not

have sk. [2]

We must get the user_ns from the NETLINK_CB(in_skb).sk and pass it to

sk_diag_fill().

[0]:

BUG: kernel NULL pointer dereference, address: 0000000000000270

#PF: supervisor read access in kernel mode

#PF: error_code(0x0000) - not-present page

PGD 12bbce067 P4D 12bbce067 PUD 12bc40067 PMD 0

Oops: 0000 [#1] PREEMPT SMP

CPU: 0 PID: 27942 Comm: syz-executor.0 Not tainted 6.1.0-rc5-next-20221118 #2

Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

rel-1.13.0-48-gd9c812dda519-prebuilt.qemu.org 04/01/2014

RIP: 0010:sk_user_ns include/net/sock.h:920 [inline]

RIP: 0010:sk_diag_dump_uid net/unix/diag.c:119 [inline]

RIP: 0010:sk_diag_fill+0x77d/0x890 net/unix/diag.c:170

Code: 89 ef e8 66 d4 2d fd c7

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-48970?

CVE-2022-48970 is a medium-severity vulnerability. It was published on October 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-48970?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-48970?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-48970?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-48970 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all