)]}'
{
  "commit": "98a225b277dfcfe3429160042cb7cb70cfefe3ca",
  "tree": "b19c3fdd0daec350317aab88703e9922650230bc",
  "parents": [
    "973fc67ab8454c85a6f165680dbe1459a1520353"
  ],
  "author": {
    "name": "Wongi Lee",
    "email": "qw3rtyp0@gmail.com",
    "time": "Tue Jun 16 22:46:17 2026 +0900"
  },
  "committer": {
    "name": "Cloud Image Release",
    "email": "cloud-image-release@prod.google.com",
    "time": "Wed Jul 08 10:33:55 2026 -0700"
  },
  "message": "ipv6: account for fraggap on the paged allocation path\n\ncommit 736b380e28d0480c7bc3e022f1950f31fe53a7c5 upstream.\n\nIn __ip6_append_data(), when the paged-allocation branch is taken\n(MSG_MORE / NETIF_F_SG / large fraglen), alloclen and pagedlen are\ncomputed as\n\n\talloclen \u003d fragheaderlen + transhdrlen;\n\tpagedlen \u003d datalen - transhdrlen;\n\ndatalen already includes fraggap (datalen \u003d length + fraggap). When\nfraggap is non-zero, this is not the first skb and transhdrlen is zero.\nThe fraggap bytes carried over from the previous skb are copied just past\nthe fragment headers in the new skb\u0027s linear area. The linear area is\ntherefore undersized by fraggap bytes while pagedlen is overstated by the\nsame amount, and the copy writes past skb-\u003eend into the trailing\nskb_shared_info.\n\nAn unprivileged user can trigger this via a UDPv6 socket using\nMSG_MORE together with MSG_SPLICE_PAGES.\n\nThe bad accounting was introduced by commit 773ba4fe9104 (\"ipv6:\navoid partial copy for zc\"). Before commit ce650a166335 (\"udp6: Fix\n__ip6_append_data()\u0027s handling of MSG_SPLICE_PAGES\"), the negative\ncopy value caused -EINVAL to be returned. That later commit allowed\nMSG_SPLICE_PAGES to proceed in this case, making the corruption\ntriggerable.\n\nThe non-paged branch sets alloclen to fraglen, which already accounts\nfor fraggap because datalen does. Bring the paged branch in line by\nadding fraggap to alloclen and subtracting it from pagedlen.\n\nAfter this adjustment, copy no longer collapses to -fraggap on the\npaged path, so remove the stale comment describing that old arithmetic.\nSince a negative copy is no longer expected for a valid MSG_SPLICE_PAGES\ncase, remove the MSG_SPLICE_PAGES exception from the negative copy check.\n\nBUG\u003db/531372767\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed CVE-2026-53362 in the Linux kernel.\n\ncos-patch: security-high\nFixes: 773ba4fe9104 (\"ipv6: avoid partial copy for zc\")\nChange-Id: Ibe635cadb773154dde61bcba2ddafe159abe7925\nSigned-off-by: Jungwoo Lee \u003cjwlee2217@gmail.com\u003e\nSigned-off-by: Wongi Lee \u003cqw3rtyp0@gmail.com\u003e\nReviewed-by: Ido Schimmel \u003cidosch@nvidia.com\u003e\nLink: https://patch.msgid.link/ajFTqRljatR17fFy@DESKTOP-19IMU7U.localdomain\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/167006\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nMain-Branch-Verified: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/167484\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "710aadbb2e2673c5e9f75b9c10027ea9e26dd5eb",
      "old_mode": 33188,
      "old_path": "net/ipv6/ip6_output.c",
      "new_id": "9a08ee6f52da0f2c5f2211bd7c1c554099987a21",
      "new_mode": 33188,
      "new_path": "net/ipv6/ip6_output.c"
    }
  ]
}
