| From bippy-1.1.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49921: net: sched: Fix use after free in red_enqueue() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| net: sched: Fix use after free in red_enqueue() |
| |
| We can't use "skb" again after passing it to qdisc_enqueue(). This is |
| basically identical to commit 2f09707d0c97 ("sch_sfb: Also store skb |
| len before calling child enqueue"). |
| |
| The Linux kernel CVE team has assigned CVE-2022-49921 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.9.333 with commit 795afe0b9bb6c915f0299a8e309936519be01619 |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.14.299 with commit a238cdcf2bdc72207c74375fc8be13ee549ca9db |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.19.265 with commit e877f8fa49fbccc63cb2df2e9179bddc695b825a |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.4.224 with commit 52e0429471976785c155bfbf51d80990c6cd46e2 |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.10.154 with commit 5960b9081baca85cc7dcb14aec1de85999ea9d36 |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.15.78 with commit fc4b50adb400ee5ec527a04073174e8e73a139fa |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 6.0.8 with commit 170e5317042c302777ed6d59fdb84af9b0219d4e |
| Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 6.1 with commit 8bdc2acd420c6f3dd1f1c78750ec989f02a1e2b9 |
| Issue introduced in 4.4.163 with commit ab0b3b9dbf559a5633d460e748144697bd2d3aa3 |
| |
| 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-49921 |
| 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: |
| net/sched/sch_red.c |
| |
| |
| 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/795afe0b9bb6c915f0299a8e309936519be01619 |
| https://git.kernel.org/stable/c/a238cdcf2bdc72207c74375fc8be13ee549ca9db |
| https://git.kernel.org/stable/c/e877f8fa49fbccc63cb2df2e9179bddc695b825a |
| https://git.kernel.org/stable/c/52e0429471976785c155bfbf51d80990c6cd46e2 |
| https://git.kernel.org/stable/c/5960b9081baca85cc7dcb14aec1de85999ea9d36 |
| https://git.kernel.org/stable/c/fc4b50adb400ee5ec527a04073174e8e73a139fa |
| https://git.kernel.org/stable/c/170e5317042c302777ed6d59fdb84af9b0219d4e |
| https://git.kernel.org/stable/c/8bdc2acd420c6f3dd1f1c78750ec989f02a1e2b9 |