# CVE-2021-47336: smackfs: restrict bytes count in smk\_set\_cipso()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-28)
- **Published:** 2024-05-21T14:35:45.744Z
- **Modified:** 2026-06-17T04:17:13.620Z

## Who should check

- Anyone running Linux \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5f9880403e6b71d56924748ba331daf836243fca; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< cbd87ba6a13891acf6180783f8234a8b7a3e3d4d; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 135122f174c357b7a3e58f40fa5792156c5e93e6; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 3780348c1a0e14ffefcaf1fc521f815bcaac94b0; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 8f5c773a2871cf446e3f36b2834fb25bbb28512b; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 258fd821f69378453c071b9dd767b298810fc766; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 49ec114a6e62d8d320037ce71c1aaf9650b3cafd
- Anyone running Linux 3.5

## Description

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

smackfs: restrict bytes count in smk\_set\_cipso()

Oops, I failed to update subject line.

From 07571157c91b98ce1a4aa70967531e64b78e8346 Mon Sep 17 00:00:00 2001
Date: Mon, 12 Apr 2021 22:25:06 +0900
Subject: \[PATCH\] smackfs: restrict bytes count in smk\_set\_cipso()

Commit 7ef4c19d245f3dc2 ("smackfs: restrict bytes count in smackfs write
functions") missed that count \> SMK\_CIPSOMAX check applies to only
format == SMK\_FIXED24\_FMT case.

## Affected and fixed versions

- Linux: \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5f9880403e6b71d56924748ba331daf836243fca; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< cbd87ba6a13891acf6180783f8234a8b7a3e3d4d; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 135122f174c357b7a3e58f40fa5792156c5e93e6; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 3780348c1a0e14ffefcaf1fc521f815bcaac94b0; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 8f5c773a2871cf446e3f36b2834fb25bbb28512b; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 258fd821f69378453c071b9dd767b298810fc766; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 49ec114a6e62d8d320037ce71c1aaf9650b3cafd (cvelist)
- Linux: 3.5 (cvelist)

## Mitigation

- Upgrade Linux to 49ec114a6e62d8d320037ce71c1aaf9650b3cafd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47336. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47336.md
Affected: Linux >= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, < 5f9880403e6b71d56924748ba331daf836243fca; >= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, < 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2; >= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, < cbd87ba6a13891acf6180783f8234a8b7a3e3d4d; >= f7112e6c9abf1c70f001dcf…
Fixed in: Linux 5f9880403e6b71d56924748ba331daf836243fca, Linux 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2, Linux 135122f174c357b7a3e58f40fa5792156c5e93e6, Linux 3780348c1a0e14ffefcaf1fc521f815bcaac94b0, Linux 8f5c773a2871cf446e3f36b2834fb25bbb28512b, Linux 258fd821f69378453c071b9dd767b298810fc766, Linux 49ec1…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47336 being exploited?

There is no confirmed exploitation: CVE-2021-47336 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-47336?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47336?

Linux \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5f9880403e6b71d56924748ba331daf836243fca; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< cbd87ba6a13891acf6180783f8234a8b7a3e3d4d; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 135122f174c357b7a3e58f40fa5792156c5e93e6; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 3780348c1a0e14ffefcaf1fc521f815bcaac94b0; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 8f5c773a2871cf446e3f36b2834fb25bbb28512b; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 258fd821f69378453c071b9dd767b298810fc766; \>= f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, \< 49ec114a6e62d8d320037ce71c1aaf9650b3cafd; Linux 3.5.

### Is there a fix for CVE-2021-47336?

Yes. Fixed in Linux 5f9880403e6b71d56924748ba331daf836243fca, Linux 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2, Linux 135122f174c357b7a3e58f40fa5792156c5e93e6, Linux 3780348c1a0e14ffefcaf1fc521f815bcaac94b0, Linux 8f5c773a2871cf446e3f36b2834fb25bbb28512b, Linux 258fd821f69378453c071b9dd767b298810fc766, Linux 49ec114a6e62d8d320037ce71c1aaf9650b3cafd. Upgrade Linux to 49ec114a6e62d8d320037ce71c1aaf9650b3cafd or later.

### How do I check if I'm affected by CVE-2021-47336?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5f9880403e6b71d56924748ba331daf836243fca>
- patch: <https://git.kernel.org/stable/c/5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2>
- patch: <https://git.kernel.org/stable/c/cbd87ba6a13891acf6180783f8234a8b7a3e3d4d>
- patch: <https://git.kernel.org/stable/c/135122f174c357b7a3e58f40fa5792156c5e93e6>
- patch: <https://git.kernel.org/stable/c/3780348c1a0e14ffefcaf1fc521f815bcaac94b0>
- patch: <https://git.kernel.org/stable/c/8f5c773a2871cf446e3f36b2834fb25bbb28512b>
- patch: <https://git.kernel.org/stable/c/258fd821f69378453c071b9dd767b298810fc766>
- patch: <https://git.kernel.org/stable/c/49ec114a6e62d8d320037ce71c1aaf9650b3cafd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47336>

HTML: <https://flawdb.com/CVE-2021-47336> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47336>
