Menu

Star on GitHub · 3.4k

CVE-2024-42256

7.5 · HIGH

In the Linux kernel, the following vulnerability has been resolved: cifs: Fix server re-repick on subrequest retry When a subrequest is marked for needing retry, netfs will call cifs_prepare_writ…

Published Aug 8, 2024EPSS 0.69%

Overview

CVE-2024-42256 is a high-severity vulnerability. It was published on August 8, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

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

cifs: Fix server re-repick on subrequest retry

When a subrequest is marked for needing retry, netfs will call

cifs_prepare_write() which will make cifs repick the server for the op

before renegotiating credits; it then calls cifs_issue_write() which

invokes smb2_async_writev() - which re-repicks the server.

If a different server is then selected, this causes the increment of

server->in_flight to happen against one record and the decrement to happen

against another, leading to misaccounting.

Fix this by just removing the repick code in smb2_async_writev(). As this

is only called from netfslib-driven code, cifs_prepare_write() should

always have been called first, and so server should never be NULL and the

preparatory step is repeated in the event that we do a retry.

The problem manifests as a warning looking something like:

WARNING: CPU: 4 PID: 72896 at fs/smb/client/smb2ops.c:97 smb2_add_credits+0x3f0/0x9e0 [ci

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-42256?

CVE-2024-42256 is a high-severity vulnerability. It was published on August 8, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2024-42256?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-42256?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-42256?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42256 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all
Watch the demo →