{
  "id": "CVE-2025-21640",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21640",
  "published_at": "2025-01-19T10:17:57.593Z",
  "title": "sctp: sysctl: cookie_hmac_alg: avoid using current-\u003ensproxy",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: sysctl: cookie_hmac_alg: avoid using current-\u003ensproxy\n\nAs mentioned in a previous commit of this series, using the 'net'\nstructure via 'current' is not recommended for different reasons:\n\n- Inconsistency: getting info from the reader's/writer's netns vs only\n  from the opener's netns.\n\n- current-\u003ensproxy can be NULL in some cases, resulting in an 'Oops'\n  (null-ptr-deref), e.g. when the current task is exiting, as spotted by\n  syzbot [1] using acct(2).\n\nThe 'net' structure can be obtained from the table-\u003edata using\ncontainer_of().\n\nNote that table-\u003edata could also be used directly, as this is the only\nmember needed from the 'net' structure, but that would increase the size\nof this fix, to use '*data' everywhere 'net-\u003esctp.sctp_hmac_alg' is\nused.",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c 5599b212d2f4466e1832a94e9932684aaa364587",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c 03ca51faba2b017bf6c90e139434c4117d0afcdc",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c 86ddf8118123cb58a0fb8724cad6979c4069065b",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c 3cd0659deb9c03535fd61839e91d4d4d3e51ac71",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c ad673e514b2793b8d5902f6ba6ab7e890dea23d5",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c f0bb3935470684306e4e04793a20ac4c4b08de0b",
          "\u003e= 3c68198e75111a905ac2412be12bf7b29099729b, \u003c ea62dd1383913b5999f3d16ae99d411f41b528d4"
        ],
        "fixed_in": [
          "5599b212d2f4466e1832a94e9932684aaa364587",
          "03ca51faba2b017bf6c90e139434c4117d0afcdc",
          "86ddf8118123cb58a0fb8724cad6979c4069065b",
          "3cd0659deb9c03535fd61839e91d4d4d3e51ac71",
          "ad673e514b2793b8d5902f6ba6ab7e890dea23d5",
          "f0bb3935470684306e4e04793a20ac4c4b08de0b",
          "ea62dd1383913b5999f3d16ae99d411f41b528d4"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.8"
        ],
        "fixed_in": [
          "0",
          "5.4.292",
          "5.10.234",
          "5.15.177",
          "6.1.125",
          "6.6.72",
          "6.12.10",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5599b212d2f4466e1832a94e9932684aaa364587 or 03ca51faba2b017bf6c90e139434c4117d0afcdc or 86ddf8118123cb58a0fb8724cad6979c4069065b or 3cd0659deb9c03535fd61839e91d4d4d3e51ac71 or ad673e514b2793b8d5902f6ba6ab7e890dea23d5 or f0bb3935470684306e4e04793a20ac4c4b08de0b or ea62dd1383913b5999f3d16ae99d411f41b528d4 or later.",
      "Upgrade Linux to 0 or 5.4.292 or 5.10.234 or 5.15.177 or 6.1.125 or 6.6.72 or 6.12.10 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
