| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49280: NFSD: prevent underflow in nfssvc_decode_writeargs() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| NFSD: prevent underflow in nfssvc_decode_writeargs() |
| |
| Smatch complains: |
| |
| fs/nfsd/nfsxdr.c:341 nfssvc_decode_writeargs() |
| warn: no lower bound on 'args->len' |
| |
| Change the type to unsigned to prevent this issue. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49280 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Fixed in 4.9.311 with commit 1a33e0de60feda402d05ac8a6cf409c19ea3e0b3 |
| Fixed in 4.14.276 with commit 438068f4912183a59fcb6b7496a06437f7fd4e2b |
| Fixed in 4.19.238 with commit 9f0f048c1bfa7867d565a95fd8c28f4484ba1043 |
| Fixed in 5.4.189 with commit 85259340fc9bd54e3d567b41b881ecb4d0055da1 |
| Fixed in 5.10.110 with commit 65e21cc042f4c1518c8c55283f53bc725b78419d |
| Fixed in 5.15.33 with commit 614a61e1592051cc42d3c38f899c9f7bdaad8a1d |
| Fixed in 5.16.19 with commit 2764af8ce0bf03cc43ee4a11897cab96bde6caae |
| Fixed in 5.17.2 with commit 413d8fefafe531a9442bb623e3fe292a38f88d65 |
| Fixed in 5.18 with commit 184416d4b98509fb4c3d8fc3d6dc1437896cc159 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2022-49280 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| fs/nfsd/nfsproc.c |
| fs/nfsd/xdr.h |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/1a33e0de60feda402d05ac8a6cf409c19ea3e0b3 |
| https://git.kernel.org/stable/c/438068f4912183a59fcb6b7496a06437f7fd4e2b |
| https://git.kernel.org/stable/c/9f0f048c1bfa7867d565a95fd8c28f4484ba1043 |
| https://git.kernel.org/stable/c/85259340fc9bd54e3d567b41b881ecb4d0055da1 |
| https://git.kernel.org/stable/c/65e21cc042f4c1518c8c55283f53bc725b78419d |
| https://git.kernel.org/stable/c/614a61e1592051cc42d3c38f899c9f7bdaad8a1d |
| https://git.kernel.org/stable/c/2764af8ce0bf03cc43ee4a11897cab96bde6caae |
| https://git.kernel.org/stable/c/413d8fefafe531a9442bb623e3fe292a38f88d65 |
| https://git.kernel.org/stable/c/184416d4b98509fb4c3d8fc3d6dc1437896cc159 |