Review reviewHigh

CVE-2022-50536

Linux Linux, linux kernel

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data In tcp_bpf_send_verdict() redirection, the eval variable is assigned to __SK_REDIRECT after the apply_bytes data is sent, if msg has more_data, sock_put() will be called multiple times. We should reset the eval variable to __SK_NONE every time more_data starts. This causes: IPv4: Attempt to release TCP socket in state 1 00000000b4c925d7 ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 5 PID: 4482 at lib/refcoun...

CVSS
7.8
EPSS
0.16%
5.41% percentile
CISA KEV
Not listed
Published
2025.10.08
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.16%
Technical severityCVSS 7.8

Vulnerability overview

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data In tcp_bpf_send_verdict() redirection, the eval variable is assigned to __SK_REDIRECT after the apply_bytes data is sent, if msg has more_data, sock_put() will be called multiple times. We should reset the eval variable to __SK_NONE every time more_data starts. This causes: IPv4: Attempt to release TCP socket in state 1 00000000b4c925d7 ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 5 PID: 4482 at lib/refcoun...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 5f0bfe21c853917aae4bc5a70fe57ddb4054443e < 7508b9f4daac4ec7dfe0b6fb2d688b1c1c105e10, >= 15dec6d8f8642a26d6a272af2d7f9877df8f02b8 < 28e4a763cd4a2b1a78852216ef4bd7df3a05cec6, >= cd9733f5d75c94a32544d6ce5be47e14194cf137 < 8786bde11a4f31b63b3036731df0b47337a7a245, >= cd9733f5d75c94a32544d6ce5be47e14194cf137 < 578a7628b838a3ac8ad61deaab5a816ff032ac13, >= cd9733f5d75c94a32544d6ce5be47e14194cf137 < 113236e8f49f262f318c00ebb14b15f4834e87c1, >= cd9733f5d75c94a32544d6ce5be47e14194cf137 < 7a9841ca025275b5b0edfb0b618934abb6ceec15, >= 6f226ffe4458ea3b8c33287cb8c86f87dc198dce, >= 5.4.157 < 5.4.229, >= 5.10.77 < 5.10.163, >= 5.14.16 < 5.15, >= 5.15, >= 5.15.1 < 5.15.86, >= 5.16 < 6.0.16, >= 6.1 < 6.1.2, 5.15
Fixed versions
5.4.229, 5.10.163, 5.15, 5.15.86, 6.0.16, 6.1.2

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-415
CVE-2022-50536 — Linux Linux, linux kernel | SECUFOCUS NOW