Linux Kernel up to 5.12.12 include/linux/slab.h netlbl_cipsov4_add_std memory leak

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.0$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 5.12.12. It has been declared as critical. The impacted element is the function netlbl_cipsov4_add_std in the library include/linux/slab.h. Such manipulation leads to memory leak. This vulnerability is uniquely identified as CVE-2021-47250. No exploit exists. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in Linux Kernel up to 5.12.12 and classified as critical. Affected by this issue is the function netlbl_cipsov4_add_std in the library include/linux/slab.h. The manipulation with an unknown input leads to a memory leak vulnerability. Using CWE to declare the problem leads to CWE-401. The product does not sufficiently track and release allocated memory after it has been used, which slowly consumes remaining memory. Impacted is availability. CVE summarizes:

In the Linux kernel, the following vulnerability has been resolved: net: ipv4: fix memory leak in netlbl_cipsov4_add_std Reported by syzkaller: BUG: memory leak unreferenced object 0xffff888105df7000 (size 64): comm "syz-executor842", pid 360, jiffies 4294824824 (age 22.546s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:590 [inline] [] kzalloc include/linux/slab.h:720 [inline] [] netlbl_cipsov4_add_std net/netlabel/netlabel_cipso_v4.c:145 [inline] [] netlbl_cipsov4_add+0x390/0x2340 net/netlabel/netlabel_cipso_v4.c:416 [] genl_family_rcv_msg_doit.isra.0+0x20e/0x320 net/netlink/genetlink.c:739 [] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] [] genl_rcv_msg+0x2bf/0x4f0 net/netlink/genetlink.c:800 [] netlink_rcv_skb+0x134/0x3d0 net/netlink/af_netlink.c:2504 [] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 [] netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] [] netlink_unicast+0x4a0/0x6a0 net/netlink/af_netlink.c:1340 [] netlink_sendmsg+0x789/0xc70 net/netlink/af_netlink.c:1929 [] sock_sendmsg_nosec net/socket.c:654 [inline] [] sock_sendmsg+0x139/0x170 net/socket.c:674 [] ____sys_sendmsg+0x658/0x7d0 net/socket.c:2350 [] ___sys_sendmsg+0xf8/0x170 net/socket.c:2404 [] __sys_sendmsg+0xd3/0x190 net/socket.c:2433 [] do_syscall_64+0x37/0x90 arch/x86/entry/common.c:47 [] entry_SYSCALL_64_after_hwframe+0x44/0xae The memory of doi_def->map.std pointing is allocated in netlbl_cipsov4_add_std, but no place has freed it. It should be freed in cipso_v4_doi_free which frees the cipso DOI resource.

The advisory is shared for download at git.kernel.org. This vulnerability is handled as CVE-2021-47250 since 04/10/2024. The exploitation is known to be difficult. There are known technical details, but no exploit is available.

Upgrading to version 4.4.274, 4.9.274, 4.14.238, 4.19.196, 5.4.128, 5.10.46 or 5.12.13 eliminates this vulnerability. Applying the patch 212166510582/086e92b1d68c/6dcea66d3bb5/5340858147e3/398a24447eb6/deeeb65c6ee4/0ffb460be3ab/d612c3f3fae2 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.1
VulDB Meta Temp Score: 5.0

VulDB Base Score: 4.8
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Memory leak
CWE: CWE-401 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.4.274/4.9.274/4.14.238/4.19.196/5.4.128/5.10.46/5.12.13
Patch: 212166510582/086e92b1d68c/6dcea66d3bb5/5340858147e3/398a24447eb6/deeeb65c6ee4/0ffb460be3ab/d612c3f3fae2

Timelineinfo

04/10/2024 🔍
05/21/2024 +41 days 🔍
05/21/2024 +0 days 🔍
12/30/2024 +223 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2021-47250 (🔍)
GCVE (CVE): GCVE-0-2021-47250
GCVE (VulDB): GCVE-100-265712

Entryinfo

Created: 05/21/2024 20:25
Updated: 12/30/2024 20:07
Changes: 05/21/2024 20:25 (58), 12/30/2024 20:07 (13)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!