CVE-2023-31248 - Use After Free

Severity

78%

Complexity

18%

Confidentiality

98%

Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability; `nft_chain_lookup_byid()` failed to check whether a chain was active and CAP_NET_ADMIN is in any user or network namespace

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

Type

Linux

First reported 1 year ago

2023-07-05 19:15:00

Last updated 1 year ago

2023-12-12 14:39:00

Affected Software

Linux Kernel

Canonical Ubuntu Linux 18.04 LTS Edition

18.04

Canonical Ubuntu Linux 14.04 ESM Edition

14.04

Canonical Ubuntu Linux 20.04 LTS Edition

20.04

Canonical Ubuntu Linux 16.04 ESM Edition

16.04

References

https://lore.kernel.org/netfilter-devel/[email protected]/T/

https://www.openwall.com/lists/oss-security/2023/07/05/2

http://www.openwall.com/lists/oss-security/2023/07/05/2

https://lore.kernel.org/netfilter-devel/[email protected]/T/

Patch

https://www.openwall.com/lists/oss-security/2023/07/05/2

Mailing List

http://www.openwall.com/lists/oss-security/2023/07/05/2

Mailing List

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

https://lists.fedoraproject.org/archives/list/[email protected]/message/UPHI46ROSSLVAV4R5LJWJYU747JGOS6D/

https://lists.fedoraproject.org/archives/list/[email protected]/message/RGZC5XOANA75OJ4XARBBXYSLDKUIJI5E/

http://packetstormsecurity.com/files/173757/Kernel-Live-Patch-Security-Notice-LSN-0096-1.html

http://www.openwall.com/lists/oss-security/2023/07/05/2

Mailing List, Third Party Advisory

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

Third Party Advisory

https://lists.fedoraproject.org/archives/list/[email protected]/message/UPHI46ROSSLVAV4R5LJWJYU747JGOS6D/

Mailing List

https://lists.fedoraproject.org/archives/list/[email protected]/message/RGZC5XOANA75OJ4XARBBXYSLDKUIJI5E/

Mailing List

http://packetstormsecurity.com/files/173757/Kernel-Live-Patch-Security-Notice-LSN-0096-1.html

Third Party Advisory

https://lists.debian.org/debian-lts-announce/2023/08/msg00001.html

http://packetstormsecurity.com/files/174577/Kernel-Live-Patch-Security-Notice-LSN-0097-1.html

http://packetstormsecurity.com/files/173757/Kernel-Live-Patch-Security-Notice-LSN-0096-1.html

Third Party Advisory, VDB Entry

https://lists.debian.org/debian-lts-announce/2023/08/msg00001.html

Third Party Advisory, VDB Entry

http://packetstormsecurity.com/files/174577/Kernel-Live-Patch-Security-Notice-LSN-0097-1.html

Third Party Advisory, VDB Entry

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.