Lucene search
K

Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: kernel (UTSA-2025-386565)

🗓️ 07 Oct 2025 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 3 Views

Unity Linux kernel update fixes slab use-after-free in rtsx_usb_ms_drv_remove for memstick.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(267146);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/10/15");

  script_cve_id("CVE-2025-22020");

  script_name(english:"Unity Linux 20.1050a / 20.1060a / 20.1070a Security Update: kernel (UTSA-2025-386565)");

  script_set_attribute(attribute:"synopsis", value:
"The Unity Linux host is missing one or more security updates.");
  script_set_attribute(attribute:"description", value:
"The Unity Linux 20 host has a package installed that is affected by a vulnerability as referenced in the
UTSA-2025-386565 advisory.

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

    memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove

    This fixes the following crash:

    ==================================================================
    BUG: KASAN: slab-use-after-free in rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms]
    Read of size 8 at addr ffff888136335380 by task kworker/6:0/140241

    CPU: 6 UID: 0 PID: 140241 Comm: kworker/6:0 Kdump: loaded Tainted: G            E      6.14.0-rc6+ #1
    Tainted: [E]=UNSIGNED_MODULE
    Hardware name: LENOVO 30FNA1V7CW/1057, BIOS S0EKT54A 07/01/2024
    Workqueue: events rtsx_usb_ms_poll_card [rtsx_usb_ms]
    Call Trace:
     <TASK>
     dump_stack_lvl+0x51/0x70
     print_address_description.constprop.0+0x27/0x320
     ? rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms]
     print_report+0x3e/0x70
     kasan_report+0xab/0xe0
     ? rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms]
     rtsx_usb_ms_poll_card+0x159/0x200 [rtsx_usb_ms]
     ? __pfx_rtsx_usb_ms_poll_card+0x10/0x10 [rtsx_usb_ms]
     ? __pfx___schedule+0x10/0x10
     ? kick_pool+0x3b/0x270
     process_one_work+0x357/0x660
     worker_thread+0x390/0x4c0
     ? __pfx_worker_thread+0x10/0x10
     kthread+0x190/0x1d0
     ? __pfx_kthread+0x10/0x10
     ret_from_fork+0x2d/0x50
     ? __pfx_kthread+0x10/0x10
     ret_from_fork_asm+0x1a/0x30
     </TASK>

    Allocated by task 161446:
     kasan_save_stack+0x20/0x40
     kasan_save_track+0x10/0x30
     __kasan_kmalloc+0x7b/0x90
     __kmalloc_noprof+0x1a7/0x470
     memstick_alloc_host+0x1f/0xe0 [memstick]
     rtsx_usb_ms_drv_probe+0x47/0x320 [rtsx_usb_ms]
     platform_probe+0x60/0xe0
     call_driver_probe+0x35/0x120
     really_probe+0x123/0x410
     __driver_probe_device+0xc7/0x1e0
     driver_probe_device+0x49/0xf0
     __device_attach_driver+0xc6/0x160
     bus_for_each_drv+0xe4/0x160
     __device_attach+0x13a/0x2b0
     bus_probe_device+0xbd/0xd0
     device_add+0x4a5/0x760
     platform_device_add+0x189/0x370
     mfd_add_device+0x587/0x5e0
     mfd_add_devices+0xb1/0x130
     rtsx_usb_probe+0x28e/0x2e0 [rtsx_usb]
     usb_probe_interface+0x15c/0x460
     call_driver_probe+0x35/0x120
     really_probe+0x123/0x410
     __driver_probe_device+0xc7/0x1e0
     driver_probe_device+0x49/0xf0
     __device_attach_driver+0xc6/0x160
     bus_for_each_drv+0xe4/0x160
     __device_attach+0x13a/0x2b0
     rebind_marked_interfaces.isra.0+0xcc/0x110
     usb_reset_device+0x352/0x410
     usbdev_do_ioctl+0xe5c/0x1860
     usbdev_ioctl+0xa/0x20
     __x64_sys_ioctl+0xc5/0xf0
     do_syscall_64+0x59/0x170
     entry_SYSCALL_64_after_hwframe+0x76/0x7e

    Freed by task 161506:
     kasan_save_stack+0x20/0x40
     kasan_save_track+0x10/0x30
     kasan_save_free_info+0x36/0x60
     __kasan_slab_free+0x34/0x50
     kfree+0x1fd/0x3b0
     device_release+0x56/0xf0
     kobject_cleanup+0x73/0x1c0
     rtsx_usb_ms_drv_remove+0x13d/0x220 [rtsx_usb_ms]
     platform_remove+0x2f/0x50
     device_release_driver_internal+0x24b/0x2e0
     bus_remove_device+0x124/0x1d0
     device_del+0x239/0x530
     platform_device_del.part.0+0x19/0xe0
     platform_device_unregister+0x1c/0x40
     mfd_remove_devices_fn+0x167/0x170
     device_for_each_child_reverse+0xc9/0x130
     mfd_remove_devices+0x6e/0xa0
     rtsx_usb_disconnect+0x2e/0xd0 [rtsx_usb]
     usb_unbind_interface+0xf3/0x3f0
     device_release_driver_internal+0x24b/0x2e0
     proc_disconnect_claim+0x13d/0x220
     usbdev_do_ioctl+0xb5e/0x1860
     usbdev_ioctl+0xa/0x20
     __x64_sys_ioctl+0xc5/0xf0
     do_syscall_64+0x59/0x170
     entry_SYSCALL_64_after_hwframe+0x76/0x7e

    Last potentially related work creation:
     kasan_save_stack+0x20/0x40
     kasan_record_aux_stack+0x85/0x90
     insert_work+0x29/0x100
     __queue_work+0x34a/0x540
     call_timer_fn+0x2a/0x160
     expire_timers+0x5f/0x1f0
     __run_timer_base.part.0+0x1b6/0x1e0
     run_timer_softirq+0x8b/0xe0
     handle_softirqs+0xf9/0x360
     __irq_exit_rcu+0x114/0x130
     sysvec_apic_timer_interrupt+0x72/0x90
     asm_sysvec_apic_timer_interrupt+0x16/0x20

    Second to last potentially related work creation:
     kasan_save_stack+0x20/0x40
     kasan_record_aux_stack+0x85/0x90
     insert_work+0x29/0x100
     __queue_work+0x34a/0x540
     call_timer_fn+0x2a/0x160
     expire_timers+0x5f/0x1f0
     __run_timer_base.part.0+0x1b6/0x1e0
     run_timer_softirq+0x8b/0xe0
     handle_softirqs+0xf9/0x
    ---truncated---

Tenable has extracted the preceding description block directly from the Unity Linux security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://src.uniontech.com/#/security_advisory_detail?utsa_id=UTSA-2025-386565
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?10e95e8b");
  # https://lore.kernel.org/linux-cve-announce/2025041642-CVE-2025-22020-70e8@gregkh
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c4668fcd");
  script_set_attribute(attribute:"see_also", value:"https://nvd.nist.gov/vuln/detail/CVE-2025-22020");
  script_set_attribute(attribute:"solution", value:
"Update the affected kernel package.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/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:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2025-22020");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2025/04/16");
  script_set_attribute(attribute:"patch_publication_date", value:"2025/07/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/10/07");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

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

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

  script_dependencies("ssh_get_info2.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/UOS-Server/release", "Host/UOS-Server/rpm-list", "Host/cpu");

  exit(0);
}
include('rpm2.inc');

if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var os_product = get_kb_item('installed_os/local/SSH/0/product');
if (isnull(os_product) || 'UOS Server' >!< os_product) audit(AUDIT_OS_NOT, 'UOS Server');
var os_version = get_kb_item('installed_os/local/SSH/0/version');
if (isnull(os_version)) audit(AUDIT_UNKNOWN_APP_VER, 'UOS Server');
if (! preg(pattern:"^20.1050a|20.1060a|20.1070a([^0-9]|$)", string:os_version)) audit(AUDIT_OS_NOT, 'UOS Server 20.1050a / 20.1060a / 20.1070a', 'UOS Server ' + os_version);

if (!get_kb_item('Host/UOS-Server/rpm-list')) audit(AUDIT_PACKAGE_LIST_MISSING);

var cpu = get_kb_item('Host/cpu');
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ('aarch64' >!< cpu && 'amd64' >!< cpu && 'loongarch64' >!< cpu && 'x86_64' >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'UOS Server', cpu);


var constraints = [
  {
    'release': '20',
    'sp': '1050a',
    'pkgs': [
      {'reference':'kernel-5.10.0-27.2', 'sp':'1050a', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-27.2', 'sp':'1050a', 'cpu':'amd64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-27.2', 'sp':'1050a', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE}
    ]
  },
  {
    'release': '20',
    'sp': '1060a',
    'pkgs': [
      {'reference':'kernel-5.10.0-46.34', 'sp':'1060a', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-46.34', 'sp':'1060a', 'cpu':'amd64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-46.34', 'sp':'1060a', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE}
    ]
  },
  {
    'release': '20',
    'sp': '1070a',
    'pkgs': [
      {'reference':'kernel-5.10.0-74.12', 'sp':'1070a', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-74.12', 'sp':'1070a', 'cpu':'amd64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-74.12', 'sp':'1070a', 'cpu':'loongarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'kernel-5.10.0-74.12', 'sp':'1070a', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE}
    ]
  }
];

var os_release = get_one_kb_item('installed_os/local/SSH/0/release');
var os_sp = get_one_kb_item('Host/*/minor_release');

var flag = 0;
var reference;
var sp;
var _cpu;
var el_string;
var rpm_spec_vers_cmp;
var epoch;
var allowmaj;
var exists_check;
var cves;
foreach var constraint ( constraints ) {
  # Check that the target release is equal to the affected release
  if (!empty_or_null(constraint['release'])){
    if (constraint['release'] != os_release) continue;
  }
  if (!empty_or_null(constraint['sp'])){
    if (constraint['sp'] != os_sp) continue;
  }
  foreach var pkg ( constraint['pkgs'] ) {
    reference = NULL;
    sp = NULL;
    _cpu = NULL;
    el_string = NULL;
    rpm_spec_vers_cmp = NULL;
    epoch = NULL;
    allowmaj = NULL;
    exists_check = NULL;
    cves = NULL;
    if (!empty_or_null(pkg['reference'])) reference = pkg['reference'];
    if (!empty_or_null(pkg['sp'])) sp = pkg['sp'];
    if (!empty_or_null(pkg['cpu'])) _cpu = pkg['cpu'];
    if (!empty_or_null(pkg['el_string'])) el_string = pkg['el_string'];
    if (!empty_or_null(pkg['rpm_spec_vers_cmp'])) rpm_spec_vers_cmp = pkg['rpm_spec_vers_cmp'];
    if (!empty_or_null(pkg['epoch'])) epoch = pkg['epoch'];
    if (!empty_or_null(pkg['allowmaj'])) allowmaj = pkg['allowmaj'];
    if (!empty_or_null(pkg['exists_check'])) exists_check = pkg['exists_check'];
    if (!empty_or_null(pkg['cves'])) cves = pkg['cves'];
    if (reference &&
        ## (no known rpm to check OR known rpm_exists)
        (!exists_check || rpm_exists(rpm:exists_check)) &&
        rpm_check(sp:sp, cpu:_cpu, reference:reference, epoch:epoch, el_string:el_string, rpm_spec_vers_cmp:rpm_spec_vers_cmp, allowmaj:allowmaj, cves:cves)) flag++;
  }
}


if (flag)
{
  security_report_v4(
      port       : 0,
      severity   : SECURITY_WARNING,
      extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  var tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'kernel');
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Oct 2025 00:00Current
6.1Medium risk
Vulners AI Score6.1
CVSS 3.17.8
EPSS0.00176
SSVC
3