SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1) - Nessus

High   Plugin ID: 158753

This page contains detailed information about the SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 158753
Name: SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1)
Filename: suse_SU-2022-0759-1.nasl
Vulnerability Published: 2022-02-04
This Plugin Published: 2022-03-09
Last Modification Time: 2022-04-26
Plugin Version: 1.7
Plugin Type: local
Plugin Family: SuSE Local Security Checks
Dependencies: linux_alt_patch_detect.nasl, ssh_get_info.nasl
Required KB Items [?]: Host/cpu, Host/local_checks_enabled, Host/SuSE/release, Host/SuSE/rpm-list

Vulnerability Information


Severity: High
Vulnerability Published: 2022-02-04
Patch Published: 2022-03-08
CVE [?]: CVE-2021-44879, CVE-2022-0001, CVE-2022-0002, CVE-2022-0487, CVE-2022-0492, CVE-2022-0516, CVE-2022-0617, CVE-2022-0644, CVE-2022-0847, CVE-2022-24448, CVE-2022-24958, CVE-2022-24959, CVE-2022-25258, CVE-2022-25375
CPE [?]: cpe:/o:novell:suse_linux:15, p-cpe:/a:novell:suse_linux:cluster-md-kmp-default, p-cpe:/a:novell:suse_linux:dlm-kmp-default, p-cpe:/a:novell:suse_linux:gfs2-kmp-default, p-cpe:/a:novell:suse_linux:kernel-default, p-cpe:/a:novell:suse_linux:kernel-default-base, p-cpe:/a:novell:suse_linux:kernel-default-devel, p-cpe:/a:novell:suse_linux:kernel-default-livepatch, p-cpe:/a:novell:suse_linux:kernel-default-livepatch-devel, p-cpe:/a:novell:suse_linux:kernel-devel, p-cpe:/a:novell:suse_linux:kernel-livepatch-5_3_18-24_107-default, p-cpe:/a:novell:suse_linux:kernel-macros, p-cpe:/a:novell:suse_linux:kernel-obs-build, p-cpe:/a:novell:suse_linux:kernel-preempt, p-cpe:/a:novell:suse_linux:kernel-preempt-devel, p-cpe:/a:novell:suse_linux:kernel-source, p-cpe:/a:novell:suse_linux:kernel-syms, p-cpe:/a:novell:suse_linux:ocfs2-kmp-default, p-cpe:/a:novell:suse_linux:reiserfs-kmp-default
Exploited by Malware: True

Synopsis

The remote SUSE host is missing one or more security updates.

Description

The remote SUSE Linux SLES15 host has packages installed that are affected by multiple vulnerabilities as referenced in the SUSE-SU-2022:0759-1 advisory.

- In gc_data_segment in fs/f2fs/gc.c in the Linux kernel before 5.16.3, special files are not considered, leading to a move_data_page NULL pointer dereference. (CVE-2021-44879)

- Non-transparent sharing of branch predictor selectors between contexts in some Intel(R) Processors may allow an authorized user to potentially enable information disclosure via local access. (CVE-2022-0001)

- Non-transparent sharing of branch predictor within a context in some Intel(R) Processors may allow an authorized user to potentially enable information disclosure via local access. (CVE-2022-0002)

- A use-after-free vulnerability was found in rtsx_usb_ms_drv_remove in drivers/memstick/host/rtsx_usb_ms.c in memstick in the Linux kernel. In this flaw, a local attacker with a user privilege may impact system Confidentiality. This flaw affects kernel versions prior to 5.14 rc1. (CVE-2022-0487)

- A vulnerability was found in the Linux kernel's cgroup_release_agent_write in the kernel/cgroup/cgroup-v1.c function. This flaw, under certain circumstances, allows the use of the cgroups v1 release_agent feature to escalate privileges and bypass the namespace isolation unexpectedly. (CVE-2022-0492)

- A vulnerability was found in kvm_s390_guest_sida_op in the arch/s390/kvm/kvm-s390.c function in KVM for s390 in the Linux kernel. This flaw allows a local attacker with a normal user privilege to obtain unauthorized memory write access. This flaw affects Linux kernel versions prior to 5.17-rc4. (CVE-2022-0516)

- A flaw null pointer dereference in the Linux kernel UDF file system functionality was found in the way user triggers udf_file_write_iter function for the malicious UDF image. A local user could use this flaw to crash the system. Actual from Linux kernel 4.2-rc1 till 5.17-rc2. (CVE-2022-0617)

- A flaw was found in the way the flags member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read only files and as such escalate their privileges on the system. (CVE-2022-0847)

- An issue was discovered in fs/nfs/dir.c in the Linux kernel before 5.16.5. If an application sets the O_DIRECTORY flag, and tries to open a regular file, nfs_atomic_open() performs a regular lookup. If a regular file is found, ENOTDIR should occur, but the server instead returns uninitialized data in the file descriptor. (CVE-2022-24448)

- drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev->buf release. (CVE-2022-24958)

- An issue was discovered in the Linux kernel before 5.16.5. There is a memory leak in yam_siocdevprivate in drivers/net/hamradio/yam.c. (CVE-2022-24959)

- An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur. (CVE-2022-25258)

- An issue was discovered in drivers/usb/gadget/function/rndis.c in the Linux kernel before 5.16.10. The RNDIS USB gadget lacks validation of the size of the RNDIS_MSG_SET command. Attackers can obtain sensitive information from kernel memory. (CVE-2022-25375)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1) vulnerability:

  1. Metasploit: exploit/linux/local/cve_2022_0847_dirtypipe
    [Dirty Pipe Local Privilege Escalation via CVE-2022-0847]
  2. Exploit-DB: exploits/linux/local/50808.c
    [EDB-50808: Linux Kernel 5.8 < 5.16.11 - Local Privilege Escalation (DirtyPipe)]
  3. GitHub: https://github.com/si1ent-le/CVE-2022-0847
    [CVE-2022-0487]
  4. GitHub: https://github.com/SofianeHamlaoui/CVE-2022-0492-Checker
    [CVE-2022-0492: A script to check if a container environment is vulnerable to container escapes via ...]
  5. GitHub: https://github.com/chenaotian/CVE-2022-0492
    [CVE-2022-0492: CVE-2022-0492 EXP and Analysis write up]
  6. GitHub: https://github.com/puckiestyle/CVE-2022-0492
    [CVE-2022-0492]
  7. GitHub: https://github.com/0xIronGoat/dirty-pipe
    [CVE-2022-0847: Implementation of Max Kellermann's exploit for CVE-2022-0847]
  8. GitHub: https://github.com/2xYuan/CVE-2022-0847
    [CVE-2022-0847: 66666]
  9. GitHub: https://github.com/4luc4rdr5290/CVE-2022-0847
    [CVE-2022-0847]
  10. GitHub: https://github.com/Al1ex/CVE-2022-0847
    [CVE-2022-0847]
  11. GitHub: https://github.com/AlexisAhmed/CVE-2022-0847-DirtyPipe-Exploits
    [CVE-2022-0847: A collection of exploits and documentation that can be used to exploit the Linux ...]
  12. GitHub: https://github.com/AyoubNajim/cve-2022-0847dirtypipe-exploit
    [CVE-2022-0847]
  13. GitHub: https://github.com/CYB3RK1D/CVE-2022-0847
    [CVE-2022-0847: dirtypipe]
  14. GitHub: https://github.com/CYB3RK1D/CVE-2022-0847-POC
    [CVE-2022-0847: Dirtypipe]
  15. GitHub: https://github.com/DataDog/dirtypipe-container-breakout-poc
    [CVE-2022-0847: Container Excape PoC for CVE-2022-0847 "DirtyPipe"]
  16. GitHub: https://github.com/Greetdawn/CVE-2022-0847-DirtyPipe
    [CVE-2022-0847]
  17. GitHub: https://github.com/Greetdawn/CVE-2022-0847-DirtyPipe-
    [CVE-2022-0847]
  18. GitHub: https://github.com/ITMarcin2211/CVE-2022-0847-DirtyPipe-Exploit
    [CVE-2022-0847]
  19. GitHub: https://github.com/LP-H4cmilo/CVE-2022-0847_DirtyPipe_Exploits
    [CVE-2022-0847: A collection of exploits and documentation that can be used to exploit the Linux ...]
  20. GitHub: https://github.com/LudovicPatho/CVE-2022-0847
    [CVE-2022-0847: Hacked up Dirty Pipe (CVE-2022-0847) PoC that hijacks a SUID binary to spawn a root ...]
  21. GitHub: https://github.com/LudovicPatho/CVE-2022-0847_dirty-pipe
    [CVE-2022-0847: Hacked up Dirty Pipe (CVE-2022-0847) PoC that hijacks a SUID binary to spawn a root ...]
  22. GitHub: https://github.com/MRNIKO1/Dirtypipe-exploit
    [CVE-2022-0847: Dirty Pipe (CVE-2022-0847) PoC that hijacks a SUID binary to spawn. a root shell. ...]
  23. GitHub: https://github.com/MrP1xel/CVE-2022-0847-dirty-pipe-kernel-checker
    [CVE-2022-0847: Python script to check if your kernel is vulnerable to Dirty pipe CVE-2022-0847]
  24. GitHub: https://github.com/Mustafa1986/CVE-2022-0847-DirtyPipe-Exploit
    [CVE-2022-0847]
  25. GitHub: https://github.com/Nekoox/dirty-pipe
    [CVE-2022-0847: Exploit for Dirty-Pipe (CVE-2022-0847)]
  26. GitHub: https://github.com/Patocoh/Research-Dirty-Pipe
    [CVE-2022-0847: CVE 2022-0847]
  27. GitHub: https://github.com/Shotokhan/cve_2022_0847_shellcode
    [CVE-2022-0847: Implementation of CVE-2022-0847 as a shellcode]
  28. GitHub: https://github.com/T4t4ru/CVE-2022-0847
    [CVE-2022-0847]
  29. GitHub: https://github.com/Udyz/CVE-2022-0847
    [CVE-2022-0847: This is the story of CVE-2022-0847, a vulnerability in the Linux kernel since 5.8 ...]
  30. GitHub: https://github.com/V0WKeep3r/CVE-2022-0847-DirtyPipe-Exploit
    [CVE-2022-0847: CVE-2022-0847-DirtyPipe-Exploit]
  31. GitHub: https://github.com/ahrixia/CVE_2022_0847
    [CVE-2022-0847: CVE-2022-0847: Linux Kernel Privilege Escalation Vulnerability]
  32. GitHub: https://github.com/akecha/Dirty-pipe
    [CVE-2022-0847: CVE-2022-0847 Linux kernel LPE POC]
  33. GitHub: https://github.com/antx-code/CVE-2022-0847
    [CVE-2022-0847: Linux Kernel Local Privilege Escalation Vulnerability CVE-2022-0847.]
  34. GitHub: https://github.com/babyshen/CVE-2022-0847
    [CVE-2022-0847: A root exploit for CVE-2022-0847 (Dirty Pipe)]
  35. GitHub: https://github.com/basharkey/CVE-2022-0847-dirty-pipe-checker
    [CVE-2022-0847: Bash script to check for CVE-2022-0847 "Dirty Pipe"]
  36. GitHub: https://github.com/bbaranoff/CVE-2022-0847
    [CVE-2022-0847]
  37. GitHub: https://github.com/breachnix/dirty-pipe-poc
    [CVE-2022-0847: CVE-2022-0847 POC]
  38. GitHub: https://github.com/carlosevieira/Dirty-Pipe
    [CVE-2022-0847: CVE-2022-0847 exploit one liner]
  39. GitHub: https://github.com/chenaotian/CVE-2022-0847
    [CVE-2022-0847: CVE-2022-0847 POC and Docker and Analysis write up]
  40. GitHub: https://github.com/crowsec-edtech/Dirty-Pipe
    [CVE-2022-0847: CVE-2022-0847 exploit one liner]
  41. GitHub: https://github.com/crusoe112/DirtyPipePython
    [CVE-2022-0847: A Python-based DirtyPipe (CVE-2022-0847) POC to pop a root shell]
  42. GitHub: https://github.com/cspshivam/CVE-2022-0847-dirty-pipe-exploit
    [CVE-2022-0847: An exploit for CVE-2022-0847 dirty-pipe vulnerability]
  43. GitHub: https://github.com/dadhee/CVE-2022-0847_DirtyPipeExploit
    [CVE-2022-0847: A “Dirty Pipe” vulnerability with CVE-2022-0847 and a CVSS score of 7.8 has been ...]
  44. GitHub: https://github.com/drapl0n/dirtypipe
    [CVE-2022-0847: DirtyPipe: Exploit for a new Linux vulnerability known as 'Dirty ...]
  45. GitHub: https://github.com/edsonjt81/CVE-2022-0847-Linux
    [CVE-2022-0847]
  46. GitHub: https://github.com/febinrev/dirtypipez-exploit
    [CVE-2022-0847: CVE-2022-0847 DirtyPipe Exploit.]
  47. GitHub: https://github.com/githublihaha/DirtyPIPE-CVE-2022-0847
    [CVE-2022-0847]
  48. GitHub: https://github.com/gyaansastra/CVE-2022-0847
    [CVE-2022-0847: Dirty Pipe POC]
  49. GitHub: https://github.com/knqyf263/CVE-2022-0847
    [CVE-2022-0847: The Dirty Pipe Vulnerability]
  50. GitHub: https://github.com/logm1lo/CVE-2022-0847_DirtyPipe_Exploits
    [CVE-2022-0847: A collection of exploits and documentation that can be used to exploit the Linux ...]
  51. GitHub: https://github.com/lucksec/CVE-2022-0847
    [CVE-2022-0847]
  52. GitHub: https://github.com/michaelklaan/CVE-2022-0847-Dirty-Pipe
    [CVE-2022-0847]
  53. GitHub: https://github.com/mrchucu1/CVE-2022-0847-Docker
    [CVE-2022-0847: Docker exploit]
  54. GitHub: https://github.com/nanaao/Dirtypipe-exploit
    [CVE-2022-0847: Dirty Pipe (CVE-2022-0847) PoC that hijacks a SUID binary to spawn. a root shell. ...]
  55. GitHub: https://github.com/pentestblogin/pentestblog-CVE-2022-0847
    [CVE-2022-0847]
  56. GitHub: https://github.com/phuonguno98/CVE-2022-0847
    [CVE-2022-0847]
  57. GitHub: https://github.com/phuonguno98/CVE-2022-0847-DirtyPipe-Exploits
    [CVE-2022-0847]
  58. GitHub: https://github.com/puckiestyle/CVE-2022-0847
    [CVE-2022-0847]
  59. GitHub: https://github.com/rahul1406/cve-2022-0847dirtypipe-exploit
    [CVE-2022-0847]
  60. GitHub: https://github.com/realbatuhan/dirtypipetester
    [CVE-2022-0847: Dirty Pipe (CVE-2022-0847) zafiyeti kontrolü]
  61. GitHub: https://github.com/rexpository/Linux-privilege-escalation
    [CVE-2022-0847: Scripted Linux Privilege Escalation for the CVE-2022-0847 "Dirty Pipe" vulnerability ...]
  62. GitHub: https://github.com/rexpository/linux-privilege-escalation
    [CVE-2022-0847: Scripted Linux Privilege Escalation for the CVE-2022-0847 "Dirty Pipe" vulnerability ...]
  63. GitHub: https://github.com/sa-infinity8888/Dirty-Pipe-CVE-2022-0847
    [CVE-2022-0847: CVE-2022-0847 (Dirty Pipe) is an arbitrary file overwrite vulnerability that allows ...]
  64. GitHub: https://github.com/si1ent-le/CVE-2022-0847
    [CVE-2022-0847: CVE-2022-0487]
  65. GitHub: https://github.com/stfnw/Debugging_Dirty_Pipe_CVE-2022-0847
    [CVE-2022-0847: Presentation slides and supplementary material]
  66. GitHub: https://github.com/terabitSec/dirtyPipe-automaticRoot
    [CVE-2022-0847: CVE-2022-0847 Python exploit to get root or write a no write permission, immutable ...]
  67. GitHub: https://github.com/tmoneypenny/CVE-2022-0847
    [CVE-2022-0847: Poc]
  68. GitHub: https://github.com/tufanturhan/CVE-2022-0847-L-nux-PrivEsc
    [CVE-2022-0847]
  69. GitHub: https://github.com/xnderLAN/CVE-2022-0847
    [CVE-2022-0847: Linux “Dirty Pipe” vulnerability gives unprivileged users root access]
  70. GitHub: https://github.com/xndpxs/CVE-2022-0847
    [CVE-2022-0847: Vulnerability in the Linux kernel since 5.8]
  71. GitHub: https://github.com/szymonh/szymonh
    [CVE-2022-25258]
  72. GitHub: https://github.com/szymonh/szymonh
    [CVE-2022-25375]
  73. GitHub: https://github.com/PaloAltoNetworks/can-ctr-escape-cve-2022-0492
    [CVE-2022-0492: Test whether a container environment is vulnerable to container escapes via ...]
  74. GitHub: https://github.com/Arinerron/CVE-2022-0847-DirtyPipe-Exploit
    [CVE-2022-0847: A root exploit for CVE-2022-0847 (Dirty Pipe)]
  75. GitHub: https://github.com/arttnba3/CVE-2022-0847
    [CVE-2022-0847: My personal exploit of CVE-2022-0847(dirty pipe)]
  76. GitHub: https://github.com/DanaEpp/pwncat_dirtypipe
    [CVE-2022-0847: Pwncat module that automatically exploits CVE-2022-0847 (dirtypipe)]
  77. GitHub: https://github.com/imfiver/CVE-2022-0847
    [CVE-2022-0847: CVE-2022-0847-DirtyPipe-Exploit CVE-2022-0847 是存在于 Linux内核 5.8 ...]
  78. GitHub: https://github.com/mhanief/dirtypipe
    [CVE-2022-0847: Dirty Pipe Vulnerability Detection Script - RHSB-2022-002 Dirty Pipe - kernel ...]
  79. GitHub: https://github.com/szymonh/d-os-descriptor
    [CVE-2022-25258: CVE-2022-25258 - Demo exploit targeting usb gadget's os descriptor handler]
  80. GitHub: https://github.com/szymonh/rndis-co
    [CVE-2022-25375: CVE-2022-25375 - Demo exploit of RNDIS USB Gadget]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2022-0847
CVSS V2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:7.2 (High)
Impact Subscore:10.0
Exploitability Subscore:3.9
CVSS Temporal Score:6.3 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.3 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:5.9
Exploitability Subscore:1.8
CVSS Temporal Score:7.5 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.5 (High)

Go back to menu.

Plugin Source


This is the suse_SU-2022-0759-1.nasl nessus plugin source code. This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
##
# (C) Tenable, Inc.
#
# The package checks in this plugin were extracted from
# SUSE update advisory SUSE-SU-2022:0759-1. The text itself
# is copyright (C) SUSE.
##

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(158753);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/26");

  script_cve_id(
    "CVE-2021-44879",
    "CVE-2022-0001",
    "CVE-2022-0002",
    "CVE-2022-0487",
    "CVE-2022-0492",
    "CVE-2022-0516",
    "CVE-2022-0617",
    "CVE-2022-0644",
    "CVE-2022-0847",
    "CVE-2022-24448",
    "CVE-2022-24958",
    "CVE-2022-24959",
    "CVE-2022-25258",
    "CVE-2022-25375"
  );
  script_xref(name:"SuSE", value:"SUSE-SU-2022:0759-1");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/16");

  script_name(english:"SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1)");

  script_set_attribute(attribute:"synopsis", value:
"The remote SUSE host is missing one or more security updates.");
  script_set_attribute(attribute:"description", value:
"The remote SUSE Linux SLES15 host has packages installed that are affected by multiple vulnerabilities as referenced in
the SUSE-SU-2022:0759-1 advisory.

  - In gc_data_segment in fs/f2fs/gc.c in the Linux kernel before 5.16.3, special files are not considered,
    leading to a move_data_page NULL pointer dereference. (CVE-2021-44879)

  - Non-transparent sharing of branch predictor selectors between contexts in some Intel(R) Processors may
    allow an authorized user to potentially enable information disclosure via local access. (CVE-2022-0001)

  - Non-transparent sharing of branch predictor within a context in some Intel(R) Processors may allow an
    authorized user to potentially enable information disclosure via local access. (CVE-2022-0002)

  - A use-after-free vulnerability was found in rtsx_usb_ms_drv_remove in drivers/memstick/host/rtsx_usb_ms.c
    in memstick in the Linux kernel. In this flaw, a local attacker with a user privilege may impact system
    Confidentiality. This flaw affects kernel versions prior to 5.14 rc1. (CVE-2022-0487)

  - A vulnerability was found in the Linux kernel's cgroup_release_agent_write in the
    kernel/cgroup/cgroup-v1.c function. This flaw, under certain circumstances, allows the use of the cgroups
    v1 release_agent feature to escalate privileges and bypass the namespace isolation unexpectedly.
    (CVE-2022-0492)

  - A vulnerability was found in kvm_s390_guest_sida_op in the arch/s390/kvm/kvm-s390.c function in KVM for
    s390 in the Linux kernel. This flaw allows a local attacker with a normal user privilege to obtain
    unauthorized memory write access. This flaw affects Linux kernel versions prior to 5.17-rc4.
    (CVE-2022-0516)

  - A flaw null pointer dereference in the Linux kernel UDF file system functionality was found in the way
    user triggers udf_file_write_iter function for the malicious UDF image. A local user could use this flaw
    to crash the system. Actual from Linux kernel 4.2-rc1 till 5.17-rc2. (CVE-2022-0617)

  - A flaw was found in the way the flags member of the new pipe buffer structure was lacking proper
    initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus
    contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache
    backed by read only files and as such escalate their privileges on the system. (CVE-2022-0847)

  - An issue was discovered in fs/nfs/dir.c in the Linux kernel before 5.16.5. If an application sets the
    O_DIRECTORY flag, and tries to open a regular file, nfs_atomic_open() performs a regular lookup. If a
    regular file is found, ENOTDIR should occur, but the server instead returns uninitialized data in the file
    descriptor. (CVE-2022-24448)

  - drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev->buf release.
    (CVE-2022-24958)

  - An issue was discovered in the Linux kernel before 5.16.5. There is a memory leak in yam_siocdevprivate in
    drivers/net/hamradio/yam.c. (CVE-2022-24959)

  - An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB
    Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array
    index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
    (CVE-2022-25258)

  - An issue was discovered in drivers/usb/gadget/function/rndis.c in the Linux kernel before 5.16.10. The
    RNDIS USB gadget lacks validation of the size of the RNDIS_MSG_SET command. Attackers can obtain sensitive
    information from kernel memory. (CVE-2022-25375)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1189126");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1191580");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1192483");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1194516");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195254");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195286");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195516");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195543");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195612");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195701");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195897");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195905");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195908");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195947");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195949");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195987");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1195995");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196079");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196095");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196132");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196155");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196235");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196584");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196601");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196612");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.suse.com/1196776");
  # https://lists.suse.com/pipermail/sle-security-updates/2022-March/010392.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?91932cae");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2021-44879");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0001");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0002");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0487");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0492");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0516");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0617");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0644");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-0847");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-24448");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-24958");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-24959");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-25258");
  script_set_attribute(attribute:"see_also", value:"https://www.suse.com/security/cve/CVE-2022-25375");
  script_set_attribute(attribute:"solution", value:
"Update the affected packages.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2022-0847");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Dirty Pipe Local Privilege Escalation via CVE-2022-0847');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2022/02/04");
  script_set_attribute(attribute:"patch_publication_date", value:"2022/03/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2022/03/09");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:cluster-md-kmp-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:dlm-kmp-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:gfs2-kmp-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-default-base");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-default-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-default-livepatch");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-default-livepatch-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-livepatch-5_3_18-24_107-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-macros");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-obs-build");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-preempt");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-preempt-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-source");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:kernel-syms");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:ocfs2-kmp-default");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:reiserfs-kmp-default");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:suse_linux:15");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"SuSE Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("ssh_get_info.nasl", "linux_alt_patch_detect.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");

  exit(0);
}


include('audit.inc');
include('global_settings.inc');
include('misc_func.inc');
include('rpm.inc');
include('ksplice.inc');

if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var release = get_kb_item("Host/SuSE/release");
if (isnull(release) || release !~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "SUSE");
var os_ver = pregmatch(pattern: "^(SLE(S|D)\d+)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, 'SUSE');
os_ver = os_ver[1];
if (! preg(pattern:"^(SLES15)$", string:os_ver)) audit(AUDIT_OS_NOT, 'SUSE SLES15', 'SUSE ' + os_ver);

if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

var cpu = get_kb_item('Host/cpu');
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ('x86_64' >!< cpu && cpu !~ "^i[3-6]86$" && 's390' >!< cpu && 'aarch64' >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'SUSE ' + os_ver, cpu);

var sp = get_kb_item("Host/SuSE/patchlevel");
if (isnull(sp)) sp = "0";
if (os_ver == "SLES15" && (! preg(pattern:"^(2)$", string:sp))) audit(AUDIT_OS_NOT, "SLES15 SP2", os_ver + " SP" + sp);

var pkgs = [
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-livepatch-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-livepatch-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-livepatch-5_3_18-24_107-default-1-5.5.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'reiserfs-kmp-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLES_SAP-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-ESPOS-release-2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-LTSS-release-15.2'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'kernel-default-livepatch-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'kernel-default-livepatch-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'kernel-livepatch-5_3_18-24_107-default-1-5.5.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_HPC-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SLE_RT-release-15.2'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Proxy-release-4.1'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Proxy-release-4.1'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Proxy-release-4.1'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Proxy-release-4.1'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Server-release-4.1'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Server-release-4.1'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Server-release-4.1'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'SUSE-Manager-Server-release-4.1'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'ses-release-7'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'ses-release-7'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'ses-release-7'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'ses-release-7'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-ha-release-15.2'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-ha-release-15.2'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-ha-release-15.2'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-ha-release-15.2'},
    {'reference':'kernel-default-livepatch-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-module-live-patching-release-15.2'},
    {'reference':'kernel-default-livepatch-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-module-live-patching-release-15.2'},
    {'reference':'kernel-livepatch-5_3_18-24_107-default-1-5.5.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sle-module-live-patching-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'aarch64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'reiserfs-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-ltss-release-15.2'},
    {'reference':'cluster-md-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'dlm-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'gfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-default-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-default-base-5.3.18-24.107.1.9.50.2', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-default-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-default-livepatch-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-default-livepatch-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-devel-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-livepatch-5_3_18-24_107-default-1-5.5.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-macros-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-obs-build-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-preempt-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-preempt-devel-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-source-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'kernel-syms-5.3.18-24.107.1', 'sp':'2', 'cpu':'x86_64', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'},
    {'reference':'ocfs2-kmp-default-5.3.18-24.107.1', 'sp':'2', 'release':'SLES15', 'rpm_spec_vers_cmp':TRUE, 'exists_check':'sles-release-15.2'}
];

var ltss_caveat_required = FALSE;
var flag = 0;
foreach package_array ( pkgs ) {
  var reference = NULL;
  var release = NULL;
  var sp = NULL;
  var cpu = NULL;
  var exists_check = NULL;
  var rpm_spec_vers_cmp = NULL;
  if (!empty_or_null(package_array['reference'])) reference = package_array['reference'];
  if (!empty_or_null(package_array['release'])) release = package_array['release'];
  if (!empty_or_null(package_array['sp'])) sp = package_array['sp'];
  if (!empty_or_null(package_array['cpu'])) cpu = package_array['cpu'];
  if (!empty_or_null(package_array['exists_check'])) exists_check = package_array['exists_check'];
  if (!empty_or_null(package_array['rpm_spec_vers_cmp'])) rpm_spec_vers_cmp = package_array['rpm_spec_vers_cmp'];
  if (reference && release) {
    if (exists_check) {
      if (!rpm_exists(release:release, rpm:exists_check)) continue;
      if ('ltss' >< tolower(exists_check)) ltss_caveat_required = TRUE;
    }
    if (rpm_check(release:release, sp:sp, cpu:cpu, reference:reference, rpm_spec_vers_cmp:rpm_spec_vers_cmp)) flag++;
  }
}

if (flag)
{
  var ltss_plugin_caveat = NULL;
  if(ltss_caveat_required) ltss_plugin_caveat = '\n' +
    'NOTE: This vulnerability check contains fixes that apply to\n' +
    'packages only available in SUSE Enterprise Linux Server LTSS\n' +
    'repositories. Access to these package security updates require\n' +
    'a paid SUSE LTSS subscription.\n';
  security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : rpm_report_get() + ltss_plugin_caveat
  );
  exit(0);
}
else
{
  var tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'cluster-md-kmp-default / dlm-kmp-default / gfs2-kmp-default / etc');
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/suse_SU-2022-0759-1.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\suse_SU-2022-0759-1.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/suse_SU-2022-0759-1.nasl

Go back to menu.

How to Run


Here is how to run the SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select SuSE Local Security Checks plugin family.
  6. On the right side table select SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0759-1) plugin ID 158753.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl suse_SU-2022-0759-1.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a suse_SU-2022-0759-1.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - suse_SU-2022-0759-1.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state suse_SU-2022-0759-1.nasl -t <IP/HOST>

Go back to menu.

References


SuSE Security Advisory:
  • SUSE-SU-2022:0759-1
See also: Similar and related Nessus plugins:
  • 158107 - Oracle Linux 7 / 8 : Unbreakable Enterprise kernel (ELSA-2022-9147)
  • 158112 - Oracle Linux 7 / 8 : Unbreakable Enterprise kernel (ELSA-2022-9141)
  • 158272 - Ubuntu 20.04 LTS : Linux kernel (OEM) vulnerabilities (USN-5302-1)
  • 158337 - SUSE SLES12 Security Update : the Linux RT Kernel (SUSE-SU-2022:0555-1)
  • 158474 - Oracle Linux 7 : Unbreakable Enterprise kernel (ELSA-2022-9179)
  • 158492 - Oracle Linux 7 : Unbreakable Enterprise kernel-container (ELSA-2022-9180)
  • 158682 - Debian DSA-5092-1 : linux - security update
  • 158697 - Amazon Linux AMI : kernel (ALAS-2022-1571)
  • 158720 - Amazon Linux 2 : kernel (ALAS-2022-1761)
  • 158731 - Ubuntu 20.04 LTS / 21.10 : Linux kernel vulnerabilities (USN-5317-1)
  • 158736 - RHEL 8 : kernel (RHSA-2022:0777)
  • 158737 - Ubuntu 18.04 LTS / 20.04 LTS : Linux kernel vulnerabilities (USN-5318-1)
  • 158743 - Slackware Linux 15.0 kernel-generic Multiple Vulnerabilities (SSA:2022-067-01)
  • 158748 - SUSE SLES12 Security Update : kernel (SUSE-SU-2022:0762-1)
  • 158749 - SUSE SLES11 Security Update : kernel (SUSE-SU-2022:14905-1)
  • 158751 - SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0768-1)
  • 158752 - SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2022:0767-1)
  • 158754 - SUSE SLES12 Security Update : kernel (SUSE-SU-2022:0765-1)
  • 158755 - SUSE SLES15 Security Update : kernel (SUSE-SU-2022:0766-1)
  • 158756 - SUSE SLES12 Security Update : kernel (SUSE-SU-2022:0756-1)
  • 158757 - SUSE SLES12 Security Update : kernel (SUSE-SU-2022:0761-1)
  • 158758 - SUSE SLES12 Security Update : kernel (SUSE-SU-2022:0757-1)
  • 158761 - Debian DSA-5096-1 : linux - security update
  • 158762 - Debian DSA-5095-1 : linux - security update
  • 158774 - openSUSE 15 Security Update : kernel (openSUSE-SU-2022:0755-1)
  • 158777 - openSUSE 15 Security Update : kernel (openSUSE-SU-2022:0760-1)
  • 158779 - openSUSE 15 Security Update : kernel (openSUSE-SU-2022:0768-1)
  • 158792 - Oracle Linux 7 : Unbreakable Enterprise kernel-container (ELSA-2022-9213)
  • 158793 - Oracle Linux 7 / 8 : Unbreakable Enterprise kernel-container (ELSA-2022-9212)
  • 158794 - Oracle Linux 8 : kernel (ELSA-2022-0825)
  • 158795 - Oracle Linux 7 / 8 : Unbreakable Enterprise kernel (ELSA-2022-9211)
  • 158800 - Oracle Linux 7 : Unbreakable Enterprise kernel (ELSA-2022-9210)
  • 158804 - RHEL 8 : kernel-rt (RHSA-2022:0822)
  • 158805 - RHEL 8 : kernel (RHSA-2022:0823)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file suse_SU-2022-0759-1.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.

Go back to menu.