lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025050103-CVE-2022-49905-1a97@gregkh>
Date: Thu,  1 May 2025 16:11:35 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-49905: net/smc: Fix possible leaked pernet namespace in smc_init()

From: Greg Kroah-Hartman <gregkh@...nel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/smc: Fix possible leaked pernet namespace in smc_init()

In smc_init(), register_pernet_subsys(&smc_net_stat_ops) is called
without any error handling.
If it fails, registering of &smc_net_ops won't be reverted.
And if smc_nl_init() fails, &smc_net_stat_ops itself won't be reverted.

This leaves wild ops in subsystem linkedlist and when another module
tries to call register_pernet_operations() it triggers page fault:

BUG: unable to handle page fault for address: fffffbfff81b964c
RIP: 0010:register_pernet_operations+0x1b9/0x5f0
Call Trace:
  <TASK>
  register_pernet_subsys+0x29/0x40
  ebtables_init+0x58/0x1000 [ebtables]
  ...

The Linux kernel CVE team has assigned CVE-2022-49905 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit 194730a9beb52d2b030ea45e12d94868d4a0e6fd and fixed in 5.15.78 with commit 61defd6450a9ef4a1487090449999b0fd83518ef
	Issue introduced in 5.14 with commit 194730a9beb52d2b030ea45e12d94868d4a0e6fd and fixed in 6.0.8 with commit c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09
	Issue introduced in 5.14 with commit 194730a9beb52d2b030ea45e12d94868d4a0e6fd and fixed in 6.1 with commit 62ff373da2534534c55debe6c724c7fe14adb97f

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-49905
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/smc/af_smc.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/61defd6450a9ef4a1487090449999b0fd83518ef
	https://git.kernel.org/stable/c/c97daf836f7caf81d3144b8cd2b2a51f9bc3bd09
	https://git.kernel.org/stable/c/62ff373da2534534c55debe6c724c7fe14adb97f

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ