pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


msnfs41client FSCTL_QUERY_VOLUME_CONTAINER_STATE prototype
Posted by Anonymous on Mon 15th Dec 2025 16:42
raw | new post

  1. #
  2. # msnfs41client_fsctl_query_volume_container_state_prototype001.diff
  3. # motivation see https://sector7.computest.nl/post/2024-06-cve-2024-20693-windows-cached-code-signature-manipulation/
  4. #
  5. diff --git a/sys/nfs41sys_fsctl.c b/sys/nfs41sys_fsctl.c
  6. index 204631e..c93f880 100644
  7. --- a/sys/nfs41sys_fsctl.c
  8. +++ b/sys/nfs41sys_fsctl.c
  9. @@ -1463,6 +1463,23 @@ NTSTATUS nfs41_FsCtl(
  10.           */
  11.          status = STATUS_INVALID_DEVICE_REQUEST;
  12.          break;
  13. +    case FSCTL_QUERY_VOLUME_CONTAINER_STATE:
  14. +        const XXCTL_LOWIO_COMPONENT *FsCtl =
  15. +            &RxContext->LowIoContext.ParamsFor.FsCtl;
  16. +        DbgP("FSCTL_QUERY_VOLUME_CONTAINER_STATE: "
  17. +            "InputBufferLength=0x%p, InputBufferLength=%ld, pOutputBuffer=0x%p OutputBufferLength=%ld\n",
  18. +            FsCtl->pInputBuffer,
  19. +            (long)FsCtl->InputBufferLength,
  20. +            FsCtl->pOutputBuffer,
  21. +            (long)FsCtl->OutputBufferLength);
  22. +        if (FsCtl->OutputBufferLength >= sizeof(CONTAINER_VOLUME_STATE)) {
  23. +            if (FsCtl->pOutputBuffer) {
  24. +                ((PCONTAINER_VOLUME_STATE)FsCtl->pOutputBuffer)->Flags = 0x0;
  25. +                RxContext->CurrentIrp->IoStatus.Status = status = STATUS_SUCCESS;
  26. +                RxContext->InformationToReturn = sizeof(CONTAINER_VOLUME_STATE);
  27. +            }
  28. +        }
  29. +        break;
  30.      default:
  31.          break;
  32.      }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at