smackfs: restrict bytes count in smk_set_cipso()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f7112e6c9abf1c70f001dcf097c1d6e218a93f5c · < 8f5c773a2871cf446e3f36b2834fb25bbb28512b| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s smackfs smk_set_cipso() function does not apply its byte-count limit to all write formats. A user able to write to this interface locally can submit an oversized write in a format other than SMK_FIXED24_FMT. The input does not specify whether authentication or additional user interaction is required.
Engineers running Linux kernels with the affected smackfs code should check their installations; affected versions are not specified.