Memory exhaustion via oversized CIPSO rule
Published May 21, 2024 · Updated May 11, 2026
Resource exhaustion in the Linux kernel Smack module allows local users with CAP_MAC_ADMIN to exhaust memory via an oversized CIPSO rule. The smk_set_cipso function limited byte counts only for the legacy fixed-width format, so cipso2 passed an arbitrary count to memdup_user_nul before parsing one rule. Exploitation requires Smack to be enabled, smackfs to be mounted, and CAP_MAC_ADMIN; memory exhaustion can interrupt the host.
Summary
What happened
Resource exhaustion in the Linux kernel Smack module allows local users with CAP_MAC_ADMIN to exhaust memory via an oversized CIPSO rule. The smk_set_cipso function limited byte counts only for the legacy fixed-width format, so cipso2 passed an arbitrary count to memdup_user_nul before parsing one rule. Exploitation requires Smack to be enabled, smackfs to be mounted, and CAP_MAC_ADMIN; memory exhaustion can interrupt the host.
The record
- CVE
- CVE-2021-47336
- Published
- May 21, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.5
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <135122f174c357b7a3e58f40fa5792156c5e93e6
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <258fd821f69378453c071b9dd767b298810fc766
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <3780348c1a0e14ffefcaf1fc521f815bcaac94b0
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <49ec114a6e62d8d320037ce71c1aaf9650b3cafd
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <5f9880403e6b71d56924748ba331daf836243fca
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <8f5c773a2871cf446e3f36b2834fb25bbb28512b
- Affected versionversion=f7112e6c9abf1c70f001dcf097c1d6e218a93f5c <cbd87ba6a13891acf6180783f8234a8b7a3e3d4d
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo