# CVE-2021-47336: smackfs: restrict bytes count in smk_set_cipso()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:45.744Z
- Modified: 2026-06-17T04:17:13.620Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 5f9880403e6b71d56924748ba331daf836243fca; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before cbd87ba6a13891acf6180783f8234a8b7a3e3d4d; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 135122f174c357b7a3e58f40fa5792156c5e93e6; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 3780348c1a0e14ffefcaf1fc521f815bcaac94b0; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 8f5c773a2871cf446e3f36b2834fb25bbb28512b; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 258fd821f69378453c071b9dd767b298810fc766; from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c before 49ec114a6e62d8d320037ce71c1aaf9650b3cafd; 3.5 (not affected: before 3.5; from 4.9.276 up to 4.9.*; from 4.14.240 up to 4.14.*; from 4.19.198 up to 4.19.*; from 5.4.133 up to 5.4.*; from 5.10.51 up to 5.10.*; from 5.12.18 up to 5.12.*; from 5.13.3 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 4.9.276; from 4.10 before 4.14.240; from 4.15 before 4.19.198; from 4.20 before 5.4.133; from 5.5 before 5.10.51; from 5.11 before 5.12.18; from 5.13 before 5.13.3

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2021-47336](https://www.cve.org/CVERecord?id=CVE-2021-47336), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47336](https://nvd.nist.gov/vuln/detail/CVE-2021-47336), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47336 · Whole record: https://cve.day/CVE-2021-47336.json · Rebuilt by cve.day 2026-11-25T22:58:08.802Z
