CVE-2023-4147 - Use After Free

Severity

78%

Complexity

18%

Confidentiality

98%

A use-after-free flaw was found in the Linux kernel’s Netfilter functionality when adding a rule with NFTA_RULE_CHAIN_ID. This flaw allows a local user to crash or escalate their privileges on the system.

CVSS 3.1 Base Score 7.8. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Demo Examples

Use After Free

CWE-416

The following example demonstrates the weakness.


               
}
free(buf3R2);

Use After Free

CWE-416

The following code illustrates a use after free error:


               
}
free(ptr);
logError("operation aborted before commit", ptr);

When an error occurs, the pointer is immediately freed. However, this pointer is later incorrectly used in the logError function.

Overview

First reported 1 year ago

2023-08-07 14:15:00

Last updated 1 year ago

2023-11-21 17:15:00

Affected Software

Linux Kernel

References

https://access.redhat.com/security/cve/CVE-2023-4147

https://www.spinics.net/lists/stable/msg671573.html

https://bugzilla.redhat.com/show_bug.cgi?id=2225239

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ebc1064e4874d5987722a2ddbc18f94aa53b211

https://access.redhat.com/security/cve/CVE-2023-4147

Patch, Third Party Advisory

https://www.spinics.net/lists/stable/msg671573.html

Mailing List, Patch

https://bugzilla.redhat.com/show_bug.cgi?id=2225239

Issue Tracking, Patch, Third Party Advisory

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ebc1064e4874d5987722a2ddbc18f94aa53b211

Mailing List, Patch

https://www.debian.org/security/2023/dsa-5480

https://www.debian.org/security/2023/dsa-5492

https://access.redhat.com/errata/RHSA-2023:5091

https://access.redhat.com/errata/RHSA-2023:5069

https://access.redhat.com/errata/RHSA-2023:5093

https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html

https://security.netapp.com/advisory/ntap-20231020-0006/

https://www.debian.org/security/2023/dsa-5480

Third Party Advisory

https://www.debian.org/security/2023/dsa-5492

Third Party Advisory

https://access.redhat.com/errata/RHSA-2023:5091

Third Party Advisory

https://access.redhat.com/errata/RHSA-2023:5069

Third Party Advisory

https://access.redhat.com/errata/RHSA-2023:5093

Third Party Advisory

https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html

Mailing List, Third Party Advisory

https://security.netapp.com/advisory/ntap-20231020-0006/

Third Party Advisory

RHSA-2023:7382

RHSA-2023:7389

RHSA-2023:7411

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.