Message ID | 20220415161422.1016735-9-ovidiu.panait@windriver.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F883C433F5 for <stable@archiver.kernel.org>; Fri, 15 Apr 2022 16:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355758AbiDOQRx (ORCPT <rfc822;stable@archiver.kernel.org>); Fri, 15 Apr 2022 12:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355821AbiDOQRp (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 15 Apr 2022 12:17:45 -0400 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF71369F5 for <stable@vger.kernel.org>; Fri, 15 Apr 2022 09:15:16 -0700 (PDT) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23FFwNBJ025644 for <stable@vger.kernel.org>; Fri, 15 Apr 2022 09:15:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=PPS06212021; bh=x39+ZknzBNy1rOH2oSzW+dCT1fGesTFnYqNIISfylmA=; b=M+/Bk54XEX8eTUWbvlzWkW9IJkXyv3vRmRDMb2/oH6/eIMKFMf2P/uf4MeNYpQWU3Qqn E3Hw+Wn44S8trbIz5EDOqeDBngQzE9vBicc/iZ9zY80HFk7pGSNh11bAHLOP3FA6X3yu 08sarcQ/88EnjqASAQGztiab7ezoIlrh304v7+iYUBgKitAnOy6VEMu/GanUDPtta+dA Wz/CVLANEfoOmgriwkLf9+D/x3cj3RklwpWSdK6pJaLaTgFwQtQBmyYyrYJG3T1Qo9Cg HcNn9prPsDR9UfL3uYBvDvVqzhSRM+WdeUCqSFFPgfh5OCNSFJMq+MGaDeXFh04NWES1 Zg== Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2040.outbound.protection.outlook.com [104.47.56.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3fc0jec5hv-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <stable@vger.kernel.org>; Fri, 15 Apr 2022 09:15:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lRgvfhKPiVp0Fv/YvCJZyKz5IbYZo3Z9KIzjbA+wTJomnPwuTlCBICPcPj3AlQ1xz1LHuLaxjUSOtwp5l13s1imVD0ViEKhO475XHM8bDc74SBhqGhgw+6HsIBC/2D4EVTVqz+59aA2WB7UnCelzrOhmvTkKL7Cf3V6P6PaPSZxPJXx5jbZYueDwNzx/Z+LxYuVWWH/wEvcBhXnWHra+B2wKh8sPBquDpauz/3D8e3vccBNbrUx1FrRXFHRQT9T+ngAkn1lpBB6p3cuWe0GiT0RcHwB9GBdT7SgNgFMA8bHYjRbTQdhoJBfd/uT6iVjmDF4BCdGrNVycLjJqpXGhaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x39+ZknzBNy1rOH2oSzW+dCT1fGesTFnYqNIISfylmA=; b=H4OtN8fc0nvq4RAanf6h0FZ8414/UeeYWMGlNrK0/9raYxrAK5cmo1BW0htDrroQTs7QRbywnChlCa8bmqJNpkc2ZPKolemb9t0sR0OirRNw3Fjvt4fRvWOUy/SVR918IVVzVHZIs65YormZ40lNC4w76OvB5+8XX/eOc1RGfB0R4ysyc+O5oO2k03HlF/1/6j32uZoJPImxgcZ16uYNG96C+fx3o3Dl+ZGAfvXCh22pJnP8/Ze6Xti/5/hUuCSpGKAg84ubADcSieYXE34UVv3/FzBXPT1CXpAHI+hT0Dd4UYPhRzc19AJusBKGCgU0i46Jm7JrwhMoHMIgWJXZHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by DM6PR11MB3626.namprd11.prod.outlook.com (2603:10b6:5:146::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Fri, 15 Apr 2022 16:14:43 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::c903:4c47:ac8a:992d]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::c903:4c47:ac8a:992d%4]) with mapi id 15.20.5164.020; Fri, 15 Apr 2022 16:14:43 +0000 From: Ovidiu Panait <ovidiu.panait@windriver.com> To: stable@vger.kernel.org Subject: [PATCH 5.15 8/8] ax25: Fix UAF bugs in ax25 timers Date: Fri, 15 Apr 2022 19:14:22 +0300 Message-Id: <20220415161422.1016735-9-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220415161422.1016735-1-ovidiu.panait@windriver.com> References: <20220415161422.1016735-1-ovidiu.panait@windriver.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR0202CA0009.eurprd02.prod.outlook.com (2603:10a6:803:14::22) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a02f815-1365-4503-a32f-08da1efb0d5d X-MS-TrafficTypeDiagnostic: DM6PR11MB3626:EE_ X-Microsoft-Antispam-PRVS: <DM6PR11MB36263A9EEB9227F9B216C725FEEE9@DM6PR11MB3626.namprd11.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MHUt5WusoHNfVP8/3ZAD2FjPaQR0LONhB+rxHOSD5ftE27dd05qRl4oOgE2dJwTmcbTMmW1bAzWvTauo+mjouh1YpklAsQG9bXpBdjiCaJSVjc5qhd9gyIeBNyxwWKxa7cgnAaN+4GpRbP6J71dxMHl7OcSMKu9u8ZrWah3GGU+m649q2XFvH5Rf0BAeClmcxGmbyaKFspOofEKNPhSuAmMbbbOd95Z2pmEu7YiLPet/NcT7AiQZ6Vd88uQZFGnYnKfG8tgYUiKAJCrDq/XdGRsIFbi/uAcpHPbGGWQJzQG7xTaTXnIuRefiT0XdtiiHXX6HC4eOhEBN8wbiedlGOtfDzRkfHdZ66h10IMfzOUl/rhOOTTFoL252kDFXs9MRfad/ig9uPE2hm7soPFwqq9iC2m8xlP9NJydKIymK5RH9FOEpKi7yJKWj7YCHsOPx+oNjXs7Jlg25DFY8PJUHlUg7VHs3wwrw4noHEChXuAuXNuFEgDFEmtuLSnlBwks6oOJ2miJOfuvFAXnye/36lPezZqtgGLNhuw6/zA4XBgHz4O9+e1Lv1aKGsJeNo9s4K2WVJ2Qb928a8ohEjjRM9O23rRfB5lOQzM5eIyCcfgmnmxD5Y9Qn/bCM6+aWnP2NFDxFY8oymFauKVSPJKMyPhze5LG9ERzMuFISNCVe1bekVv3G1MKAWhHCY9uGu1E39sqDPGNG0qsAX6tCh1l2tA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(5660300002)(38100700002)(8936002)(38350700002)(1076003)(6506007)(26005)(186003)(2616005)(6916009)(52116002)(6666004)(508600001)(6486002)(6512007)(316002)(66556008)(66476007)(66946007)(8676002)(36756003)(2906002)(44832011)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JZSGbmgFHeYwbqWb740GFi6tZd4nz0x6kW9tZqqoLiMXBfxPIhrm2BOyOLsgVdJieVb/nLTLZOb1SLVV69mmX53G7Kn8hxKytnLF9ul0PyIHOVQofCf/sTcm79xt0uBnCOGy+Xsbis0jplsZhLSKU629+7UaJlnJE/tL83I5gS7gkDfDY3duv/noJL7bEwrrOCgKubJP0LgfC1o4Pcj0sjIEDiFAwWUY2qMSa3dlwg6hpje8o3aEtc0GgaRVDCTrqGqfDq54DGFYnVccMZpcZepE5HdkHugu5rNNyDotE3IxkwEYZJxZe71ZJSorOeSIbgY5RUzFcx0g5hgkp8Wh/4Xv/s9Qm2ANWznryw3gnV8sGxbZ6F/saImIXxZjQrjPl6KC+9vM9oznUGypEVJTDPAqXnRyu0I1MrYPI9/clGFmL5xO4PB8hNQ2lI8LJ2G+bCc+a1k5c+IavIU7drosypy2F6AF+o2zZ+PVKQhn2J3KIfFkAzl3wshfTlZkVEyi7hcgvZyxX4cpFq0+8yHTDOkI96GcTaK6ZHUH74cqkfPR9IBa/0d/uScjxq9YK4aXBOQsse7YZ7UPVTjuM500UeuL9UhSFzXYgfw1CWixlF+HTwfKIz17j2roLxLzMzY/Yr4UXdfHy/hH+VOdx1beJ976DeQSyHRlsbvEsRWlID0mf57Q80AJar4DgNecJby1b08s8f0dv5eRhAVi36d4vus2n2zuf1I0Gf0up6y30FwerMV0qPjqA7Lng5tOfDXOHx6l6kfYfo8XcvNhc8QEBiVg5M7JFDKHEeyK0M8k0J+w+ctowyf0Sul3EmGD9/0JRFliAeVMAbT/ijsOh1eZTxxNhLRpGY76DvJuUO87HKeTMI3t/PAGhURQ1Q1WbK9DlUw5Qkktg8Te8m8yWTbduIfNuBEifoO0MUc+CX7dpsmkMKel4hqIAhAZ5B44THwjOfRB8S7AXPonv5YiCt31D6UfiBWUjL+YQLQa4Nrkz50MpQqThYuU9tgpZgoniMNdt2CwEmW87Dzq0mjk5URtCX8k6QyoEbIJtJuiMjMvuqu0Ylj3V6UT+S+uxDSqL7+82BnKoU3K5miraHe3K39UQnLU4VlswPdaabTgNNGPsaE3m1eqDufTCP/+pj1L3F1GPq8+4D/9P52ZmizwapEAs0zSy9wxISe1uM+QY6kYwxLVImBRqkRFn9gNR160YP69izMcCnZ8H6iEcimu2K1YCNcU1I3fahw2LOcqa1zkqa8JwZ6i9sw2HSzqu3LTHfvCN+S4F4Scf2/FNxjc5/ztWHKQLUSY3s9OcIOuZju/XMURU8YTzvsP6fZCvdxLB9K39EOW0STipLLY6m6gsT6koiDKVKhnsz18RHBVsFz3RK9IPurYKjbH4ZmmfM7OUAE4NLY6CiwVFnrLGubV8o6TP2RLoIJBdb2bkTsFzCaLLWa6Pqkxze8Fcz5cwLhjJSy5695iumIOCaDRY/H6gwIDuMs/qvS4SFCdSp3+NixBDP6cV2ywHypfIpXS3EU44NOWkb6nAOhqDRZlWaWlGL09/nCpeu+aQ/QXSu/gTrUfbErKWGa7+mf5PSdoNiJw5/YJq4ZbQNgn3fOdAfPWxrYKsG2Nd0RRb/hAlbKsA0z3yTlpndWuMi2mXIER2ED53DPHBpzBahBJNF12ILUDNq/L3ut+UZLnSIB9b+f85ykSo681d1G0198nMLZ3zKB68UF20klpe1vPAw7ixK5TLIntFDazUV7nn1QOBNVfmHjp9qE= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a02f815-1365-4503-a32f-08da1efb0d5d X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2022 16:14:43.7148 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OxjVHxT2A7R4CzsLHSjrHdOrphJrUwWKKQ3Du3fKmhxSa29N/jhEescIn10U7WvCbCWj+6Gdpv4+m9dw6xOq2Bl+Q0B9R5cYiF9Sh81UQiI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3626 X-Proofpoint-ORIG-GUID: 3JPU7ku2XSRzXgyVZJoQYQ3mf1dzP2Hu X-Proofpoint-GUID: 3JPU7ku2XSRzXgyVZJoQYQ3mf1dzP2Hu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-15_06,2022-04-15_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=631 priorityscore=1501 lowpriorityscore=0 adultscore=0 impostorscore=0 phishscore=0 malwarescore=0 clxscore=1015 spamscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204150092 Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
ax25: fixes for CVE-2022-1199/CVE-2022-1204/CVE-2022-1205
|
expand
|
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 3116d8d1b5cf..7b69503dc46a 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -1053,6 +1053,11 @@ static int ax25_release(struct socket *sock) ax25_destroy_socket(ax25); } if (ax25_dev) { + del_timer_sync(&ax25->timer); + del_timer_sync(&ax25->t1timer); + del_timer_sync(&ax25->t2timer); + del_timer_sync(&ax25->t3timer); + del_timer_sync(&ax25->idletimer); dev_put(ax25_dev->dev); ax25_dev_put(ax25_dev); }