Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-151749

pcscd memory leak

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhel-9.7
    • pcsc-lite
    • None
    • None
    • Patch
    • rhel-security-crypto-clubs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      The pcscd service is started by a socket activation.
      If there is no connection to the socket, the service is stopped after 60 seconds, because the service is by default started with the --auto-exit option:

      -x, --auto-exit    pcscd will quit after 60 seconds of inactivity 

      We have have a service running which has a permanent connection to the pcscd socket, so the pcscd service is running permanently.

      We observed that the pcscd service is using more memory, ther longer the service is running on different host:

      $ venv/bin/ansible k* -i inventory/ -m shell -a 'systemctl status pcscd | grep Memory && systemctl status pcscd | grep Active | cut -d\; -f2' -o | sed 's/\\n/ - /g'  | grep CHANGED | sort
      
      k5248001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.0G (peak: 1.1G) -  5 days ago
      k5248111.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.6G (peak: 1.7G) -  6 days ago
      k5248113.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 2.2G (peak: 2.2G) -  1 week 5 days ago
      k5648001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.7G (peak: 2.0G) -  2 weeks 0 days ago
      k5648002.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.3G (peak: 1.4G) -  3 days ago
      k5769001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.8G (peak: 1.8G) -  2 weeks 0 days ago
      k6107001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 451.5M (peak: 1.0G) -  4 days ago
      k6107003.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 14.5M (peak: 15.5M) -  50min ago
      k6107005.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 770.6M (peak: 1.2G) -  4 days ago
      k6135001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 95.2M (peak: 96.2M) -  6h ago
      k6225001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 8.7M (peak: 9.9M) -  28min ago
      k6225002.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 64.0M (peak: 64.9M) -  4h 18min ago
      k6225003.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 94.9M (peak: 95.9M) -  6h ago
      k6225004.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 61.7M (peak: 62.7M) -  4h 7min ago
      k6258001.intern.hornbach.de | CHANGED | rc=0 | (stdout)      Memory: 1.2G (peak: 1.3G) -  5 days ago 

      RHEL 9.7 currently provides pcscd version 1.9.4

      We found in the upstream repo a bug regarding a memory leak:

      https://github.com/LudovicRousseau/PCSC/issues/55

      This was fixed with a patch in 1.9.8:

      https://github.com/LudovicRousseau/PCSC/commit/c94aeb5ed933dbbe09af611a4829999860a0b293 

       

      Please integrate the bugfix patch in the current pcsc-lite 1.9.4 rpm package.

              jjelen@redhat.com Jakub Jelen
              chr.loos Christian Loos
              Jakub Jelen Jakub Jelen
              Georgios Stavros Pantelakis Georgios Stavros Pantelakis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: